summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 48dd1da)
raw | patch | inline | side by side (parent: 48dd1da)
author | Junio C Hamano <gitster@pobox.com> | |
Wed, 13 Jun 2007 08:28:21 +0000 (01:28 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 13 Jun 2007 09:02:10 +0000 (02:02 -0700) |
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile | patch | blob | history |
diff --git a/Makefile b/Makefile
index 392a5c4bf1bb2e8733adee3c882186516e4911e5..a70277b4417c8994156ff5c92e801791002ce069 100644 (file)
--- a/Makefile
+++ b/Makefile
chmod +x $@+ && \
mv -f $@+ $@
-git$X: git.c common-cmds.h $(BUILTIN_OBJS) $(GITLIBS) GIT-CFLAGS
+git.o: git.c common-cmds.h GIT-CFLAGS
+ $(QUIET_CC)$(CC) -DGIT_VERSION='"$(GIT_VERSION)"' \
+ $(ALL_CFLAGS) -c $(filter %.c,$^)
+
+git$X: git.o $(BUILTIN_OBJS) $(GITLIBS)
$(QUIET_LINK)$(CC) -DGIT_VERSION='"$(GIT_VERSION)"' \
- $(ALL_CFLAGS) -o $@ $(filter %.c,$^) \
+ $(ALL_CFLAGS) -o $@ $(filter %.c,$^) git.o \
$(BUILTIN_OBJS) $(ALL_LDFLAGS) $(LIBS)
help.o: common-cmds.h