-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is to prepare for gitk i18n effort that makes gitk not a single file project anymore. We may use subproject to bind git.git and gitk.git more loosely in the future, but we do not want to require everybody to have subproject aware git to be able to pull from git.git yet. Signed-off-by: Junio C Hamano <gitster@pobox.com>
- Loading branch information
Junio C Hamano
committed
Nov 19, 2007
1 parent
ea55960
commit 62ba514
Showing
3 changed files
with
32 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# The default target of this Makefile is... | ||
all:: | ||
|
||
prefix ?= $(HOME) | ||
bindir ?= $(prefix)/bin | ||
TCLTK_PATH ?= wish | ||
INSTALL ?= install | ||
RM ?= rm -f | ||
|
||
DESTDIR_SQ = $(subst ','\'',$(DESTDIR)) | ||
bindir_SQ = $(subst ','\'',$(bindir)) | ||
TCLTK_PATH_SQ = $(subst ','\'',$(TCLTK_PATH)) | ||
|
||
ifndef V | ||
QUIET = @ | ||
QUIET_GEN = $(QUIET)echo ' ' GEN $@ && | ||
endif | ||
|
||
all:: gitk-wish | ||
install:: all | ||
$(INSTALL) gitk-wish '$(DESTDIR_SQ)$(bindir_SQ)'/gitk | ||
clean:: | ||
$(RM) gitk-wish | ||
|
||
gitk-wish: gitk | ||
$(QUIET_GEN)$(RM) $@ $@+ && \ | ||
sed -e '1,3s|^exec .* "$$0"|exec $(subst |,'\|',$(TCLTK_PATH_SQ)) "$$0"|' <gitk >$@+ && \ | ||
chmod +x $@+ && \ | ||
mv -f $@+ $@ |
0
gitk → gitk-git/gitk
100755 → 100644
File renamed without changes.