git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Shawn O. Pearce <spearce@spearce.org>
Date
Feb 24, 2008, 05:38 UTC
Message-ID
<20080224053804.GA22150@spearce.org>

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(-)
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
Message 1 of 1 in “Ensure 'make dist' compiles git-archive.exe on Cygwin”
  1. Ensure 'make dist' compiles git-archive.exe on CygwinShawn O. Pearce, Feb 24, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.