summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5910e99)
raw | patch | inline | side by side (parent: 5910e99)
author | Junio C Hamano <junkio@cox.net> | |
Tue, 11 Apr 2006 00:37:58 +0000 (17:37 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 11 Apr 2006 00:52:17 +0000 (17:52 -0700) |
Signed-off-by: Junio C Hamano <junkio@cox.net>
Makefile | patch | blob | history |
diff --git a/Makefile b/Makefile
index a979205ec589fe135d62673e2ae4a6f6cbe1dd57..52395268610cb40bbf2fbbf1ad8580ef3a2a8029 100644 (file)
--- a/Makefile
+++ b/Makefile
git-add.sh git-bisect.sh git-branch.sh git-checkout.sh \
git-cherry.sh git-clean.sh git-clone.sh git-commit.sh \
git-count-objects.sh git-diff.sh git-fetch.sh \
- git-format-patch.sh git-log.sh git-ls-remote.sh \
+ git-format-patch.sh git-ls-remote.sh \
git-merge-one-file.sh git-parse-remote.sh \
git-prune.sh git-pull.sh git-push.sh git-rebase.sh \
git-repack.sh git-request-pull.sh git-reset.sh \
git-name-rev$X git-pack-redundant$X git-repo-config$X git-var$X \
git-describe$X git-merge-tree$X git-blame$X git-imap-send$X
+BUILT_INS = git-log$X
+
# what 'all' will build and 'install' will install, in gitexecdir
ALL_PROGRAMS = $(PROGRAMS) $(SIMPLE_PROGRAMS) $(SCRIPTS)
export prefix TAR INSTALL DESTDIR SHELL_PATH template_dir
### Build rules
-all: $(ALL_PROGRAMS) git$X gitk
+all: $(ALL_PROGRAMS) git$X $(BUILT_INS) gitk
all:
$(MAKE) -C templates
$(ALL_CFLAGS) -o $@ $(filter %.c,$^) \
$(ALL_LDFLAGS) $(LIBS)
+$(BUILT_INS): git$X
+ rm -f $@ && ln git$X $@
+
common-cmds.h: Documentation/git-*.txt
./generate-cmdlist.sh > $@
clean:
rm -f *.o mozilla-sha1/*.o arm/*.o ppc/*.o compat/*.o xdiff/*.o \
- $(LIB_FILE) $(XDIFF_LIB)
+ $(LIB_FILE) $(XDIFF_LIB) $(BUILT_INS)
rm -f $(ALL_PROGRAMS) git$X
rm -f *.spec *.pyc *.pyo */*.pyc */*.pyo common-cmds.h TAGS tags
rm -rf $(GIT_TARNAME)