git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Fix git.c compilation target
@ 2005-11-21  8:10 Alex Riesen
  2005-11-21  9:24 ` Alex Riesen
  0 siblings, 1 reply; 6+ messages in thread
From: Alex Riesen @ 2005-11-21  8:10 UTC (permalink / raw)
  To: Andreas Ericsson; +Cc: git

[-- Attachment #1: Type: text/plain, Size: 144 bytes --]

The target for "git" was missing $(X), strangely essential for some
exotic platform.

Signed-off-by: Alex Riesen <ariesen@harmanbecker.com>

[-- Attachment #2: 0001-fix-compilation-of-git-.exe.txt --]
[-- Type: text/plain, Size: 990 bytes --]

Subject: [PATCH] fix compilation of git(.exe)
(cherry picked from b0911b2af7c52639a2c6ae8f038ba5753f886a28 commit)

Signed-off-by: Alex Riesen <ariesen@harmanbecker.com>


---

 Makefile |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

applies-to: e12ceef6841365e64bb765294235a67e9263d7de
2323c0467c437c337c0ad59e9660ccea920ff866
diff --git a/Makefile b/Makefile
index 092931a..65b948b 100644
--- a/Makefile
+++ b/Makefile
@@ -342,15 +342,15 @@ SCRIPTS = $(patsubst %.sh,%,$(SCRIPT_SH)
 export prefix TAR INSTALL DESTDIR SHELL_PATH template_dir
 ### Build rules
 
-all: $(PROGRAMS) $(SCRIPTS) git
+all: $(PROGRAMS) $(SCRIPTS) git$(X)
 
 all:
 	$(MAKE) -C templates
 
 # Only use $(CFLAGS). We don't need anything else.
-git: git.c Makefile
+git$(X): git.c Makefile
 	$(CC) -DGIT_EXEC_PATH='"$(bindir)"' -DGIT_VERSION='"$(GIT_VERSION)"' \
-		$(CFLAGS) $@.c -o $@
+		$(CFLAGS) $< -o $@
 
 $(filter-out git,$(patsubst %.sh,%,$(SCRIPT_SH))) : % : %.sh
 	rm -f $@
---
0.99.9.GIT

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-11-22  8:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-21  8:10 [PATCH] Fix git.c compilation target Alex Riesen
2005-11-21  9:24 ` Alex Riesen
2005-11-21 23:01   ` Junio C Hamano
2005-11-21 23:44     ` [PATCH] " Andreas Ericsson
2005-11-22  7:47       ` Alex Riesen
2005-11-22  8:08         ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).