threads / patch / 12281

patchEnsure 'make dist' compiles git-archive.exe on Cygwin

Subject: [PATCH] Ensure 'make dist' compiles git-archive.exe on Cygwin

## tl;dr

One message between Feb 24, 2008 and Feb 24, 2008. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Shawn O. Pearce· Feb 24, 2008, 05:38 UTC · lore

On Cygwin we have to use git-archive.exe as the target, otherwise running 'make dist' does not compile git-archive in the current directory. That may cause 'make dist' to fail on a clean source tree that has never been built before.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
---
 Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Show changes to Makefile +1 −1
diff --git a/Makefile b/Makefile
index 4d53898..86ef951 100644
--- a/Makefile
+++ b/Makefile
@@ -1103,7 +1103,7 @@ git.spec: git.spec.in
 	mv $@+ $@
 
 GIT_TARNAME=git-$(GIT_VERSION)
-dist: git.spec git-archive configure
+dist: git.spec git-archive$(X) configure
 	./git-archive --format=tar \
 		--prefix=$(GIT_TARNAME)/ HEAD^{tree} > $(GIT_TARNAME).tar
 	@mkdir -p $(GIT_TARNAME)
-- 
1.5.4.3.295.g6b554

← back to recent threads