Skip to content

Commit b42934d

Browse files
author
Junio C Hamano
committed
Fix the installation location.
The earlier change to separate $(gitexecdir) from $(bindir) had the installation location of the git wrapper and the rest of the commands the wrong way (right now, both of them point at the same location so there is no real harm). Also gitk needs to be installed in $(bindir). Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent 77cb17e commit b42934d

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

Makefile

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -114,14 +114,14 @@ SCRIPT_PYTHON = \
114114
SCRIPTS = $(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.
120120
SIMPLE_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
125125
PROGRAMS = \
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
146146
ALL_PROGRAMS = $(PROGRAMS) $(SIMPLE_PROGRAMS) $(SCRIPTS)
147147

148148
# Backward compatibility -- to be removed after 1.0
@@ -368,7 +368,7 @@ LIB_OBJS += $(COMPAT_OBJS)
368368
export 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

373373
all:
374374
$(MAKE) -C templates
@@ -476,8 +476,8 @@ check:
476476
install: 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

512512
clean:
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

Comments
 (0)