@@ -114,14 +114,14 @@ SCRIPT_PYTHON = \
114114SCRIPTS = $(patsubst % .sh,% ,$(SCRIPT_SH ) ) \
115115 $(patsubst % .perl,% ,$(SCRIPT_PERL ) ) \
116116 $(patsubst % .py,% ,$(SCRIPT_PYTHON ) ) \
117- gitk git-cherry-pick
117+ git-cherry-pick
118118
119119# The ones that do not have to link with lcrypto nor lz.
120120SIMPLE_PROGRAMS = \
121121 git-get-tar-commit-id$X git-mailinfo$X git-mailsplit$X \
122122 git-stripspace$X git-daemon$X
123123
124- # ... and all the rest
124+ # ... and all the rest that could be moved out of bindir to gitexecdir
125125PROGRAMS = \
126126 git-apply$X git-cat-file$X \
127127 git-checkout-index$X git-clone-pack$X git-commit-tree$X \
@@ -142,7 +142,7 @@ PROGRAMS = \
142142 git-name-rev$X git-pack-redundant$X git-repo-config$X git-var$X \
143143 git-describe$X
144144
145- # what 'all' will build and 'install' will install.
145+ # what 'all' will build and 'install' will install, in gitexecdir
146146ALL_PROGRAMS = $(PROGRAMS ) $(SIMPLE_PROGRAMS ) $(SCRIPTS )
147147
148148# Backward compatibility -- to be removed after 1.0
@@ -368,7 +368,7 @@ LIB_OBJS += $(COMPAT_OBJS)
368368export prefix TAR INSTALL DESTDIR SHELL_PATH template_dir
369369# ## Build rules
370370
371- all : $(ALL_PROGRAMS ) git$X
371+ all : $(ALL_PROGRAMS ) git$X gitk
372372
373373all :
374374 $(MAKE ) -C templates
@@ -476,8 +476,8 @@ check:
476476install : all
477477 $(INSTALL ) -d -m755 $(call shellquote,$(DESTDIR )$(bindir ) )
478478 $(INSTALL ) -d -m755 $(call shellquote,$(DESTDIR )$(gitexecdir ) )
479- $(INSTALL ) $(ALL_PROGRAMS ) $(call shellquote,$(DESTDIR )$(bindir ) )
480- $(INSTALL ) git$X $(call shellquote,$(DESTDIR )$(gitexecdir ) )
479+ $(INSTALL ) $(ALL_PROGRAMS ) $(call shellquote,$(DESTDIR )$(gitexecdir ) )
480+ $(INSTALL ) git$X gitk $(call shellquote,$(DESTDIR )$(bindir ) )
481481 $(MAKE ) -C templates install
482482 $(INSTALL ) -d -m755 $(call shellquote,$(DESTDIR )$(GIT_PYTHON_DIR ) )
483483 $(INSTALL ) $(PYMODULES ) $(call shellquote,$(DESTDIR )$(GIT_PYTHON_DIR ) )
@@ -511,8 +511,7 @@ rpm: dist
511511
512512clean :
513513 rm -f * .o mozilla-sha1/* .o arm/* .o ppc/* .o compat/* .o $(LIB_FILE )
514- rm -f $(PROGRAMS ) $(SIMPLE_PROGRAMS ) git$X
515- rm -f $(filter-out gitk,$(SCRIPTS ) )
514+ rm -f $(ALL_PROGRAMS ) git$X
516515 rm -f * .spec * .pyc * .pyo * /* .pyc * /* .pyo
517516 rm -rf $(GIT_TARNAME )
518517 rm -f $(GIT_TARNAME ) .tar.gz git-core_$(GIT_VERSION ) -* .tar.gz
0 commit comments