From: Stephen Dolan Date: Thu, 20 Dec 2012 15:12:14 +0000 (+0000) Subject: Give Windows builds a proper .exe suffix. X-Git-Tag: jq-1.3~59 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5578ec0f6981e9c01d92f0cda65dfc02605a030c;p=jq Give Windows builds a proper .exe suffix. --- diff --git a/Makefile b/Makefile index 30e6d42..69e97c7 100644 --- a/Makefile +++ b/Makefile @@ -53,12 +53,19 @@ build/osx64%: CC='i686-apple-darwin10-gcc -m64' build/win32%: CC='i686-w64-mingw32-gcc -m32' EXTRA_CFLAGS=-DJQ_DEFAULT_ENABLE_COLOR=0 build/win64%: CC='x86_64-w64-mingw32-gcc -m64' EXTRA_CFLAGS=-DJQ_DEFAULT_ENABLE_COLOR=0 -ALL_BINARIES=$(foreach platform, $(PLATFORMS), $(foreach binary, $(BINARIES), build/$(platform)/$(binary))) +BIN_SUFFIX_win32 = .exe +BIN_SUFFIX_win64 = .exe + +ALL_BINARIES=\ + $(foreach platform, $(PLATFORMS), \ + $(foreach binary, $(BINARIES), \ + build/$(platform)/$(binary)$(BIN_SUFFIX_$(platform)))) $(ALL_BINARIES): build/%: mkdir -p $(@D) + echo $(dir $*) make -B $(BINARIES) CC=$(CC) - cp $(BINARIES) $(@D) + $(foreach binary, $(BINARIES), cp $(binary) $(@D)/$(binary)$(suffix $*);) binaries: $(ALL_BINARIES) @@ -97,6 +104,6 @@ docs/output: cd docs; rake build www_binaries: docs/output binaries - $(foreach platform, $(PLATFORMS), $(foreach binary, $(BINARIES), \ + $(foreach platform, $(PLATFORMS), \ mkdir -p docs/output/download/$(platform); \ - cp build/$(platform)/$(binary) docs/output/download/$(platform)/$(binary); )) + cp build/$(platform)/* docs/output/download/$(platform)/; ) diff --git a/docs/content/2.download/default.yml b/docs/content/2.download/default.yml index f364277..502ef0b 100644 --- a/docs/content/2.download/default.yml +++ b/docs/content/2.download/default.yml @@ -38,7 +38,7 @@ body: ### Windows - * Executables for [64-bit](win64/jq) or [32-bit](win32/jq) + * Executables for [64-bit](win64/jq.exe) or [32-bit](win32/jq.exe) ### From source on Linux or OS X