[PATCH] Fix git.c compilation target
- From
Alex Riesen <raa.lkml@gmail.com>
- Date
- Nov 21, 2005, 08:10 UTC
- Message-ID
- <81b0412b0511210010m66a3f898q6d108a799de023d9@mail.gmail.com>
The target for "git" was missing $(X), strangely essential for some exotic platform.
Signed-off-by: Alex Riesen <ariesen@harmanbecker.com>
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