We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7533699 commit c74102eCopy full SHA for c74102e
bin/Rules.mk
@@ -15,8 +15,13 @@ DISTCLEAN += $(wildcard $(d)/gx-v*) $(wildcard $(d)/gx-go-v*) $(d)/tmp
15
PATH := $(realpath $(d)):$(PATH)
16
17
$(TGTS_$(d)):
18
+
19
rm -f $@$(binpostfix)
20
+ifeq ($(OS),Windows_NT)
21
+ cp $^$(binpostfix) $@$(binpostfix)
22
+else
23
ln -s $(notdir $^)$(binpostfix) $@$(binpostfix)
24
+endif
25
26
bin/gx-v%:
27
@echo "installing gx $(@:bin/gx-%=%)"
bin/dist_get
@@ -58,8 +58,9 @@ unarchive() {
58
ua_outfile="$3"
59
ua_distname="$4"
60
ua_binpostfix=""
61
+ ua_os=$(uname -o)
62
- if [ "$(uname -o)" = "Msys" ]; then
63
+ if [ "$ua_os" = "Msys" ] || [ "$ua_os" = "Cygwin" ] ; then
64
ua_binpostfix=".exe"
65
fi
66
ua_outfile="$ua_outfile$ua_binpostfix"
0 commit comments