summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 944e3a8)
raw | patch | inline | side by side (parent: 944e3a8)
author | Junio C Hamano <junkio@cox.net> | |
Tue, 11 Apr 2006 18:29:36 +0000 (11:29 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 11 Apr 2006 18:29:36 +0000 (11:29 -0700) |
Do not install built-in commands as separate files -- use
hardlinks instead.
Signed-off-by: Junio C Hamano <junkio@cox.net>
hardlinks instead.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Makefile | patch | blob | history |
diff --git a/Makefile b/Makefile
index c0409f35e38baf7fdac13338001f37ef7ea2e258..caca2923b7a765857024c5ec470f6b0562ebd42c 100644 (file)
--- a/Makefile
+++ b/Makefile
BUILT_INS = git-log$X
# what 'all' will build and 'install' will install, in gitexecdir
-ALL_PROGRAMS = $(PROGRAMS) $(SIMPLE_PROGRAMS) $(BUILT_INS) $(SCRIPTS)
+ALL_PROGRAMS = $(PROGRAMS) $(SIMPLE_PROGRAMS) $(SCRIPTS)
# Backward compatibility -- to be removed after 1.0
PROGRAMS += git-ssh-pull$X git-ssh-push$X
export prefix TAR INSTALL DESTDIR SHELL_PATH template_dir
### Build rules
-all: $(ALL_PROGRAMS) git$X gitk
+all: $(ALL_PROGRAMS) $(BUILT_INS) git$X gitk
all:
$(MAKE) -C templates
$(MAKE) -C templates install
$(INSTALL) -d -m755 '$(DESTDIR_SQ)$(GIT_PYTHON_DIR_SQ)'
$(INSTALL) $(PYMODULES) '$(DESTDIR_SQ)$(GIT_PYTHON_DIR_SQ)'
+ $(foreach p,$(BUILT_INS), rm -f '$(DESTDIR_SQ)$(bindir_SQ)/$p' && ln '$(DESTDIR_SQ)$(bindir_SQ)/git$X' '$(DESTDIR_SQ)$(bindir_SQ)/$p' ;)
install-doc:
$(MAKE) -C Documentation install