@matheusbsbs / matheus-bagliano / commits / f94fbbee90
Fork 0

Retire git-log.sh (take #3)

Do not install built-in commands as separate files -- use hardlinks instead. Signed-off-by: Junio C Hamano <junkio@cox.net>

Junio C Hamano committed Apr 11, 2006 at 11:29 UTC f94fbbee902802b317bd95150e1a7ae8be166c13
1 file changed +3 -2
Makefile
+3 -2
@@ -170,7 +170,7 @@ PROGRAMS = \
170 BUILT_INS = git-log$X
171
172 # what 'all' will build and 'install' will install, in gitexecdir
173 -ALL_PROGRAMS = $(PROGRAMS) $(SIMPLE_PROGRAMS) $(BUILT_INS) $(SCRIPTS)
173 +ALL_PROGRAMS = $(PROGRAMS) $(SIMPLE_PROGRAMS) $(SCRIPTS)
174
175 # Backward compatibility -- to be removed after 1.0
176 PROGRAMS += git-ssh-pull$X git-ssh-push$X
@@ -450,7 +450,7 @@ LIB_OBJS += $(COMPAT_OBJS)
450 export prefix TAR INSTALL DESTDIR SHELL_PATH template_dir
451 ### Build rules
452
453 -all: $(ALL_PROGRAMS) git$X gitk
453 +all: $(ALL_PROGRAMS) $(BUILT_INS) git$X gitk
454
455 all:
456 $(MAKE) -C templates
@@ -617,6 +617,7 @@ install: all
617 $(MAKE) -C templates install
618 $(INSTALL) -d -m755 '$(DESTDIR_SQ)$(GIT_PYTHON_DIR_SQ)'
619 $(INSTALL) $(PYMODULES) '$(DESTDIR_SQ)$(GIT_PYTHON_DIR_SQ)'
620 + $(foreach p,$(BUILT_INS), rm -f '$(DESTDIR_SQ)$(bindir_SQ)/$p' && ln '$(DESTDIR_SQ)$(bindir_SQ)/git$X' '$(DESTDIR_SQ)$(bindir_SQ)/$p' ;)
621
622 install-doc:
623 $(MAKE) -C Documentation install