File tree 2 files changed +12
-4
lines changed 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 1
1
include mk/header.mk
2
2
3
3
dist_root_$(d) =/ipfs/QmT3CLJKJzWPuN4NAN4LLy69UpKskMF3AuYhXstKdn8V43
4
+ binpostfix :=
5
+ ifeq ($(OS ) ,Windows_NT)
6
+ binpostfix = .exe
7
+ endif
4
8
5
9
$(d ) /gx : $(d ) /gx-v0.12.1
6
10
$(d ) /gx-go : $(d ) /gx-go-v1.6.0
@@ -11,8 +15,8 @@ DISTCLEAN += $(wildcard $(d)/gx-v*) $(wildcard $(d)/gx-go-v*) $(d)/tmp
11
15
PATH := $(realpath $(d ) ) :$(PATH )
12
16
13
17
$(TGTS_$(d ) ) :
14
- rm -f $@
15
- ln -s $(notdir $^ ) $@
18
+ rm -f $@ $( binpostfix )
19
+ ln -s $(notdir $^ )$( binpostfix ) $@ $( binpostfix )
16
20
17
21
bin/gx-v% :
18
22
@echo " installing gx $( @:bin/gx-%=%) "
Original file line number Diff line number Diff line change 1
- gx-path = gx/ipfs/$(shell gx deps find $(1 ) ) /$(1 )
1
+ binpostfix :=
2
+ ifeq ($(OS ) ,Windows_NT)
3
+ binpostfix = .exe
4
+ endif
5
+ gx-path = gx/ipfs/$(shell gx$(binpostfix ) deps find $(1 ) ) /$(1 )
2
6
3
7
gx-deps :
4
- gx install --global
8
+ gx$( binpostfix ) install --global
5
9
.PHONY : gx-deps
6
10
7
11
ifneq ($(IPFS_GX_USE_GLOBAL ) ,1)
You can’t perform that action at this time.
0 commit comments