File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,9 @@ ERLANG_INCLUDES := $(shell erl -eval 'io:format("~s", \
8
8
LIBP2P_DIR = native/libp2p_nif
9
9
OUTPUT_DIR = priv/native
10
10
11
- # create dir if it doesn't exist
12
- dir_guard =@mkdir -p $(@D )
11
+ # create directories if they don't exist
12
+ DIRS =$(OUTPUT_DIR )
13
+ $(info $(shell mkdir -p $(DIRS)))
13
14
14
15
GO_SOURCES = $(LIBP2P_DIR ) /main.go
15
16
GO_ARCHIVES := $(patsubst % .go,% .a,$(GO_SOURCES ) )
@@ -25,7 +26,6 @@ $(LIBP2P_DIR)/%.a $(LIBP2P_DIR)/%.h: $(LIBP2P_DIR)/%.go
25
26
go build -buildmode=c-archive -tags only_go $* .go
26
27
27
28
$(OUTPUT_DIR ) /libp2p_nif.so : $(GO_ARCHIVES ) $(GO_HEADERS ) $(LIBP2P_DIR ) /libp2p.c $(LIBP2P_DIR ) /utils.c
28
- $(dir_guard )
29
29
gcc $(CFLAGS ) -o $@ \
30
30
$(LIBP2P_DIR ) /libp2p.c $(LIBP2P_DIR ) /utils.c $(GO_ARCHIVES )
31
31
You can’t perform that action at this time.
0 commit comments