Skip to content

Commit

Permalink
jinterface: Fix parallel make issue
Browse files Browse the repository at this point in the history
  • Loading branch information
garazdawi committed Oct 22, 2024
1 parent b2073cf commit 11573bf
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/jinterface/java_src/com/ericsson/otp/erlang/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,14 @@ $(APP_TARGET): $(APP_SRC) $(ERL_TOP)/lib/jinterface/vsn.mk
$(APPUP_TARGET): $(APPUP_SRC) $(ERL_TOP)/lib/jinterface/vsn.mk
$(vsn_verbose)sed -e 's;%VSN%;$(JINTERFACE_VSN);' $< > $@

$(TYPES): make_dirs $(JAVA_DEST_ROOT)$(JARFILE)
_create_dirs := $(shell mkdir -p $(JAVA_DEST_ROOT))

make_dirs:
$(V_at)if [ ! -d "$(JAVA_DEST_ROOT)" ];then mkdir "$(JAVA_DEST_ROOT)"; fi
$(TYPES): $(JAVA_DEST_ROOT)$(JARFILE)

$(JAVA_DEST_ROOT)$(JARFILE): $(TARGET_FILES)
$(JAVA_DEST_ROOT):
-@mkdir -p $(JAVA_DEST_ROOT)

$(JAVA_DEST_ROOT)$(JARFILE): $(JAVA_DEST_ROOT) $(TARGET_FILES)
@(cd $(JAVA_DEST_ROOT) ; $(JAR) $(JARFLAGS) $(JARFILE) $(JAVA_CLASS_SUBDIR))

clean:
Expand Down

0 comments on commit 11573bf

Please sign in to comment.