Skip to content

Commit

Permalink
Add Cygwin awareness in make
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Dominic Della Valle <ddvpublic@gmail.com>
  • Loading branch information
djdv committed Feb 12, 2018
1 parent 7533699 commit e87fed0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions bin/Rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ PATH := $(realpath $(d)):$(PATH)

$(TGTS_$(d)):
rm -f $@$(binpostfix)
ifeq ($(OS),Windows_NT)
cp $^$(binpostfix) $@$(binpostfix)
else
ln -s $(notdir $^)$(binpostfix) $@$(binpostfix)
endif

bin/gx-v%:
@echo "installing gx $(@:bin/gx-%=%)"
Expand Down
3 changes: 2 additions & 1 deletion bin/dist_get
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ unarchive() {
ua_outfile="$3"
ua_distname="$4"
ua_binpostfix=""
ua_os=$(uname -o)

if [ "$(uname -o)" = "Msys" ]; then
if [ "$ua_os" = "Msys" ] || [ "$ua_os" = "Cygwin" ] ; then
ua_binpostfix=".exe"
fi
ua_outfile="$ua_outfile$ua_binpostfix"
Expand Down

0 comments on commit e87fed0

Please sign in to comment.