2007-02-12 08:04:00 +01:00
|
|
|
all::
|
|
|
|
|
2007-03-06 09:39:52 +01:00
|
|
|
# Define V=1 to have a more verbose compile.
|
|
|
|
#
|
2007-11-21 09:00:56 +01:00
|
|
|
# Define NO_MSGFMT if you do not have msgfmt from the GNU gettext
|
|
|
|
# package and want to use our rough pure Tcl po->msg translator.
|
2013-12-09 23:57:00 +01:00
|
|
|
# TCL_PATH must be valid for this to work.
|
2007-11-21 09:00:56 +01:00
|
|
|
#
|
2007-03-06 09:39:52 +01:00
|
|
|
|
2010-01-24 20:16:26 +01:00
|
|
|
GIT-VERSION-FILE: FORCE
|
2007-02-12 08:04:00 +01:00
|
|
|
@$(SHELL_PATH) ./GIT-VERSION-GEN
|
|
|
|
-include GIT-VERSION-FILE
|
|
|
|
|
2007-11-21 09:00:56 +01:00
|
|
|
uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')
|
2007-06-29 06:32:41 +02:00
|
|
|
uname_O := $(shell sh -c 'uname -o 2>/dev/null || echo not')
|
2008-02-23 20:23:59 +01:00
|
|
|
uname_R := $(shell sh -c 'uname -r 2>/dev/null || echo not')
|
2007-06-29 06:32:41 +02:00
|
|
|
|
2007-03-12 19:43:22 +01:00
|
|
|
SCRIPT_SH = git-gui.sh
|
2007-11-21 09:00:56 +01:00
|
|
|
GITGUI_MAIN := git-gui
|
2007-02-12 08:04:00 +01:00
|
|
|
GITGUI_BUILT_INS = git-citool
|
2007-05-08 05:36:31 +02:00
|
|
|
ALL_LIBFILES = $(wildcard lib/*.tcl)
|
2007-05-18 01:52:45 +02:00
|
|
|
PRELOAD_FILES = lib/class.tcl
|
2007-11-21 09:00:56 +01:00
|
|
|
NONTCL_LIBFILES = \
|
|
|
|
lib/git-gui.ico \
|
|
|
|
$(wildcard lib/win32_*.js) \
|
|
|
|
#end NONTCL_LIBFILES
|
2007-02-12 08:04:00 +01:00
|
|
|
|
|
|
|
ifndef SHELL_PATH
|
|
|
|
SHELL_PATH = /bin/sh
|
|
|
|
endif
|
|
|
|
|
2007-02-13 01:07:29 +01:00
|
|
|
ifndef gitexecdir
|
|
|
|
gitexecdir := $(shell git --exec-path)
|
|
|
|
endif
|
|
|
|
|
2007-05-08 05:36:31 +02:00
|
|
|
ifndef sharedir
|
2008-07-30 09:18:26 +02:00
|
|
|
ifeq (git-core,$(notdir $(gitexecdir)))
|
|
|
|
sharedir := $(dir $(patsubst %/,%,$(dir $(gitexecdir))))share
|
|
|
|
else
|
2007-05-29 05:23:10 +02:00
|
|
|
sharedir := $(dir $(gitexecdir))share
|
2007-05-08 05:36:31 +02:00
|
|
|
endif
|
2008-07-30 09:18:26 +02:00
|
|
|
endif
|
2007-05-08 05:36:31 +02:00
|
|
|
|
2007-02-13 01:07:29 +01:00
|
|
|
ifndef INSTALL
|
|
|
|
INSTALL = install
|
|
|
|
endif
|
2007-02-12 08:04:00 +01:00
|
|
|
|
2007-11-21 09:00:56 +01:00
|
|
|
RM_RF ?= rm -rf
|
2007-09-18 08:50:17 +02:00
|
|
|
RMDIR ?= rmdir
|
|
|
|
|
2007-12-07 08:51:15 +01:00
|
|
|
INSTALL_D0 = $(INSTALL) -d -m 755 # space is required here
|
2007-06-29 06:32:41 +02:00
|
|
|
INSTALL_D1 =
|
2007-12-07 08:51:15 +01:00
|
|
|
INSTALL_R0 = $(INSTALL) -m 644 # space is required here
|
2007-06-29 06:32:41 +02:00
|
|
|
INSTALL_R1 =
|
2007-12-07 08:51:15 +01:00
|
|
|
INSTALL_X0 = $(INSTALL) -m 755 # space is required here
|
2007-06-29 06:32:41 +02:00
|
|
|
INSTALL_X1 =
|
2007-11-21 09:00:56 +01:00
|
|
|
INSTALL_A0 = find # space is required here
|
|
|
|
INSTALL_A1 = | cpio -pud
|
2007-06-29 06:32:41 +02:00
|
|
|
INSTALL_L0 = rm -f # space is required here
|
|
|
|
INSTALL_L1 = && ln # space is required here
|
|
|
|
INSTALL_L2 =
|
|
|
|
INSTALL_L3 =
|
|
|
|
|
2007-09-18 08:50:17 +02:00
|
|
|
REMOVE_D0 = $(RMDIR) # space is required here
|
|
|
|
REMOVE_D1 = || true
|
2007-11-21 09:00:56 +01:00
|
|
|
REMOVE_F0 = $(RM_RF) # space is required here
|
2007-09-18 08:50:17 +02:00
|
|
|
REMOVE_F1 =
|
|
|
|
CLEAN_DST = true
|
|
|
|
|
2007-03-06 09:39:52 +01:00
|
|
|
ifndef V
|
2007-06-29 06:32:41 +02:00
|
|
|
QUIET = @
|
2007-11-21 09:00:56 +01:00
|
|
|
QUIET_GEN = $(QUIET)echo ' ' GEN '$@' &&
|
2007-06-29 06:32:41 +02:00
|
|
|
QUIET_INDEX = $(QUIET)echo ' ' INDEX $(dir $@) &&
|
2007-11-21 09:00:56 +01:00
|
|
|
QUIET_MSGFMT0 = $(QUIET)printf ' MSGFMT %12s ' $@ && v=`
|
2008-01-24 06:37:12 +01:00
|
|
|
QUIET_MSGFMT1 = 2>&1` && echo "$$v" | sed -e 's/fuzzy translations/fuzzy/' | sed -e 's/ messages*//g'
|
2007-05-18 01:52:45 +02:00
|
|
|
QUIET_2DEVNULL = 2>/dev/null
|
2007-06-29 06:32:41 +02:00
|
|
|
|
|
|
|
INSTALL_D0 = dir=
|
2007-12-07 08:51:15 +01:00
|
|
|
INSTALL_D1 = && echo ' ' DEST $$dir && $(INSTALL) -d -m 755 "$$dir"
|
2007-06-29 06:32:41 +02:00
|
|
|
INSTALL_R0 = src=
|
2007-12-07 08:51:15 +01:00
|
|
|
INSTALL_R1 = && echo ' ' INSTALL 644 `basename $$src` && $(INSTALL) -m 644 $$src
|
2007-06-29 06:32:41 +02:00
|
|
|
INSTALL_X0 = src=
|
2007-12-07 08:51:15 +01:00
|
|
|
INSTALL_X1 = && echo ' ' INSTALL 755 `basename $$src` && $(INSTALL) -m 755 $$src
|
2007-11-21 09:00:56 +01:00
|
|
|
INSTALL_A0 = src=
|
|
|
|
INSTALL_A1 = && echo ' ' INSTALL ' ' `basename "$$src"` && find "$$src" | cpio -pud
|
2007-06-29 06:32:41 +02:00
|
|
|
|
|
|
|
INSTALL_L0 = dst=
|
|
|
|
INSTALL_L1 = && src=
|
|
|
|
INSTALL_L2 = && dst=
|
|
|
|
INSTALL_L3 = && echo ' ' 'LINK ' `basename "$$dst"` '->' `basename "$$src"` && rm -f "$$dst" && ln "$$src" "$$dst"
|
2007-09-18 08:50:17 +02:00
|
|
|
|
|
|
|
CLEAN_DST = echo ' ' UNINSTALL
|
|
|
|
REMOVE_D0 = dir=
|
|
|
|
REMOVE_D1 = && echo ' ' REMOVE $$dir && test -d "$$dir" && $(RMDIR) "$$dir" || true
|
|
|
|
REMOVE_F0 = dst=
|
2007-11-21 09:00:56 +01:00
|
|
|
REMOVE_F1 = && echo ' ' REMOVE `basename "$$dst"` && $(RM_RF) "$$dst"
|
2007-03-06 09:39:52 +01:00
|
|
|
endif
|
|
|
|
|
2007-04-18 02:16:56 +02:00
|
|
|
TCLTK_PATH ?= wish
|
2008-02-23 20:23:59 +01:00
|
|
|
ifeq (./,$(dir $(TCLTK_PATH)))
|
|
|
|
TCL_PATH ?= $(subst wish,tclsh,$(TCLTK_PATH))
|
|
|
|
else
|
|
|
|
TCL_PATH ?= $(dir $(TCLTK_PATH))$(notdir $(subst wish,tclsh,$(TCLTK_PATH)))
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(uname_S),Darwin)
|
|
|
|
TKFRAMEWORK = /Library/Frameworks/Tk.framework/Resources/Wish.app
|
2009-05-02 07:11:57 +02:00
|
|
|
ifeq ($(shell echo "$(uname_R)" | awk -F. '{if ($$1 >= 9) print "y"}')_$(shell test -d $(TKFRAMEWORK) || echo n),y_n)
|
|
|
|
TKFRAMEWORK = /System/Library/Frameworks/Tk.framework/Resources/Wish.app
|
|
|
|
ifeq ($(shell test -d $(TKFRAMEWORK) || echo n),n)
|
|
|
|
TKFRAMEWORK = /System/Library/Frameworks/Tk.framework/Resources/Wish\ Shell.app
|
|
|
|
endif
|
2008-02-23 20:23:59 +01:00
|
|
|
endif
|
|
|
|
TKEXECUTABLE = $(shell basename "$(TKFRAMEWORK)" .app)
|
|
|
|
endif
|
2007-04-18 02:16:56 +02:00
|
|
|
|
2007-03-13 07:14:07 +01:00
|
|
|
ifeq ($(findstring $(MAKEFLAGS),s),s)
|
|
|
|
QUIET_GEN =
|
|
|
|
endif
|
|
|
|
|
2007-11-21 09:00:56 +01:00
|
|
|
-include config.mak
|
|
|
|
|
2007-02-12 08:04:00 +01:00
|
|
|
DESTDIR_SQ = $(subst ','\'',$(DESTDIR))
|
|
|
|
gitexecdir_SQ = $(subst ','\'',$(gitexecdir))
|
|
|
|
SHELL_PATH_SQ = $(subst ','\'',$(SHELL_PATH))
|
2007-05-18 01:52:45 +02:00
|
|
|
TCL_PATH_SQ = $(subst ','\'',$(TCL_PATH))
|
2007-04-18 02:16:56 +02:00
|
|
|
TCLTK_PATH_SQ = $(subst ','\'',$(TCLTK_PATH))
|
2007-11-21 09:00:56 +01:00
|
|
|
TCLTK_PATH_SED = $(subst ','\'',$(subst \,\\,$(TCLTK_PATH)))
|
2007-02-12 08:04:00 +01:00
|
|
|
|
2007-09-18 08:50:17 +02:00
|
|
|
gg_libdir ?= $(sharedir)/git-gui/lib
|
|
|
|
libdir_SQ = $(subst ','\'',$(gg_libdir))
|
2008-01-21 01:58:38 +01:00
|
|
|
libdir_SED = $(subst ','\'',$(subst \,\\,$(gg_libdir_sed_in)))
|
2007-11-21 09:00:56 +01:00
|
|
|
exedir = $(dir $(gitexecdir))share/git-gui/lib
|
|
|
|
|
|
|
|
GITGUI_SCRIPT := $$0
|
|
|
|
GITGUI_RELATIVE :=
|
|
|
|
GITGUI_MACOSXAPP :=
|
|
|
|
|
|
|
|
ifeq ($(uname_O),Cygwin)
|
|
|
|
GITGUI_SCRIPT := `cygpath --windows --absolute "$(GITGUI_SCRIPT)"`
|
2008-02-23 20:23:59 +01:00
|
|
|
|
|
|
|
# Is this a Cygwin Tcl/Tk binary? If so it knows how to do
|
|
|
|
# POSIX path translation just like cygpath does and we must
|
|
|
|
# keep libdir in POSIX format so Cygwin packages of git-gui
|
|
|
|
# work no matter where the user installs them.
|
|
|
|
#
|
|
|
|
ifeq ($(shell echo 'puts [file normalize /]' | '$(TCL_PATH_SQ)'),$(shell cygpath --mixed --absolute /))
|
|
|
|
gg_libdir_sed_in := $(gg_libdir)
|
|
|
|
else
|
|
|
|
gg_libdir_sed_in := $(shell cygpath --windows --absolute "$(gg_libdir)")
|
|
|
|
endif
|
2008-01-05 07:03:42 +01:00
|
|
|
else
|
|
|
|
ifeq ($(exedir),$(gg_libdir))
|
|
|
|
GITGUI_RELATIVE := 1
|
2007-11-21 09:00:56 +01:00
|
|
|
endif
|
2008-01-21 01:58:38 +01:00
|
|
|
gg_libdir_sed_in := $(gg_libdir)
|
2007-11-21 09:00:56 +01:00
|
|
|
endif
|
|
|
|
ifeq ($(uname_S),Darwin)
|
|
|
|
ifeq ($(shell test -d $(TKFRAMEWORK) && echo y),y)
|
|
|
|
GITGUI_MACOSXAPP := YesPlease
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
ifneq (,$(findstring MINGW,$(uname_S)))
|
2017-07-25 22:42:41 +02:00
|
|
|
ifeq ($(shell expr "$(uname_R)" : '1\.'),2)
|
2007-11-21 09:00:56 +01:00
|
|
|
NO_MSGFMT=1
|
2017-07-25 22:42:41 +02:00
|
|
|
endif
|
2007-11-21 09:00:56 +01:00
|
|
|
GITGUI_WINDOWS_WRAPPER := YesPlease
|
2008-07-30 09:18:26 +02:00
|
|
|
GITGUI_RELATIVE := 1
|
2007-11-21 09:00:56 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef GITGUI_MACOSXAPP
|
|
|
|
GITGUI_MAIN := git-gui.tcl
|
|
|
|
|
|
|
|
git-gui: GIT-VERSION-FILE GIT-GUI-VARS
|
|
|
|
$(QUIET_GEN)rm -f $@ $@+ && \
|
|
|
|
echo '#!$(SHELL_PATH_SQ)' >$@+ && \
|
|
|
|
echo 'if test "z$$*" = zversion ||' >>$@+ && \
|
|
|
|
echo ' test "z$$*" = z--version' >>$@+ && \
|
|
|
|
echo then >>$@+ && \
|
|
|
|
echo ' 'echo \'git-gui version '$(GITGUI_VERSION)'\' >>$@+ && \
|
|
|
|
echo else >>$@+ && \
|
2015-04-19 03:35:48 +02:00
|
|
|
echo ' libdir="$${GIT_GUI_LIB_DIR:-$(libdir_SQ)}"' >>$@+ && \
|
|
|
|
echo ' 'exec \"'$$libdir/Git Gui.app/Contents/MacOS/$(subst \,,$(TKEXECUTABLE))'\" \
|
2007-11-21 09:00:56 +01:00
|
|
|
'"$$0" "$$@"' >>$@+ && \
|
|
|
|
echo fi >>$@+ && \
|
|
|
|
chmod +x $@+ && \
|
|
|
|
mv $@+ $@
|
|
|
|
|
|
|
|
Git\ Gui.app: GIT-VERSION-FILE GIT-GUI-VARS \
|
|
|
|
macosx/Info.plist \
|
|
|
|
macosx/git-gui.icns \
|
|
|
|
macosx/AppMain.tcl \
|
2008-02-23 20:23:59 +01:00
|
|
|
$(TKFRAMEWORK)/Contents/MacOS/$(TKEXECUTABLE)
|
2007-11-21 09:00:56 +01:00
|
|
|
$(QUIET_GEN)rm -rf '$@' '$@'+ && \
|
|
|
|
mkdir -p '$@'+/Contents/MacOS && \
|
|
|
|
mkdir -p '$@'+/Contents/Resources/Scripts && \
|
2008-02-23 20:23:59 +01:00
|
|
|
cp '$(subst ','\'',$(subst \,,$(TKFRAMEWORK)/Contents/MacOS/$(TKEXECUTABLE)))' \
|
2007-11-21 09:00:56 +01:00
|
|
|
'$@'+/Contents/MacOS && \
|
|
|
|
cp macosx/git-gui.icns '$@'+/Contents/Resources && \
|
|
|
|
sed -e 's/@@GITGUI_VERSION@@/$(GITGUI_VERSION)/g' \
|
2008-02-23 20:23:59 +01:00
|
|
|
-e 's/@@GITGUI_TKEXECUTABLE@@/$(TKEXECUTABLE)/g' \
|
2007-11-21 09:00:56 +01:00
|
|
|
macosx/Info.plist \
|
|
|
|
>'$@'+/Contents/Info.plist && \
|
|
|
|
sed -e 's|@@gitexecdir@@|$(gitexecdir_SQ)|' \
|
|
|
|
-e 's|@@GITGUI_LIBDIR@@|$(libdir_SED)|' \
|
|
|
|
macosx/AppMain.tcl \
|
|
|
|
>'$@'+/Contents/Resources/Scripts/AppMain.tcl && \
|
|
|
|
mv '$@'+ '$@'
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef GITGUI_WINDOWS_WRAPPER
|
|
|
|
GITGUI_MAIN := git-gui.tcl
|
2007-05-08 05:36:31 +02:00
|
|
|
|
2007-11-21 09:00:56 +01:00
|
|
|
git-gui: windows/git-gui.sh
|
|
|
|
cp $< $@
|
|
|
|
endif
|
2007-05-29 05:23:10 +02:00
|
|
|
|
2007-11-21 09:00:56 +01:00
|
|
|
$(GITGUI_MAIN): git-gui.sh GIT-VERSION-FILE GIT-GUI-VARS
|
2007-03-06 09:39:52 +01:00
|
|
|
$(QUIET_GEN)rm -f $@ $@+ && \
|
2007-03-12 19:43:22 +01:00
|
|
|
sed -e '1s|#!.*/sh|#!$(SHELL_PATH_SQ)|' \
|
2010-09-15 21:34:37 +02:00
|
|
|
-e 's|@@SHELL_PATH@@|$(SHELL_PATH_SQ)|' \
|
2007-11-21 09:00:56 +01:00
|
|
|
-e '1,30s|^ argv0=$$0| argv0=$(GITGUI_SCRIPT)|' \
|
|
|
|
-e '1,30s|^ exec wish | exec '\''$(TCLTK_PATH_SED)'\'' |' \
|
2007-02-13 01:07:29 +01:00
|
|
|
-e 's/@@GITGUI_VERSION@@/$(GITGUI_VERSION)/g' \
|
2007-11-21 09:00:56 +01:00
|
|
|
-e 's|@@GITGUI_RELATIVE@@|$(GITGUI_RELATIVE)|' \
|
|
|
|
-e '$(GITGUI_RELATIVE)s|@@GITGUI_LIBDIR@@|$(libdir_SED)|' \
|
|
|
|
git-gui.sh >$@+ && \
|
2007-03-06 09:39:52 +01:00
|
|
|
chmod +x $@+ && \
|
2007-02-12 08:04:00 +01:00
|
|
|
mv $@+ $@
|
|
|
|
|
2007-11-21 09:00:56 +01:00
|
|
|
XGETTEXT ?= xgettext
|
|
|
|
ifdef NO_MSGFMT
|
|
|
|
MSGFMT ?= $(TCL_PATH) po/po2msg.sh
|
|
|
|
else
|
|
|
|
MSGFMT ?= msgfmt
|
2008-03-12 06:59:35 +01:00
|
|
|
ifneq ($(shell $(MSGFMT) --tcl -l C -d . /dev/null 2>/dev/null; echo $$?),0)
|
2008-01-24 06:37:12 +01:00
|
|
|
MSGFMT := $(TCL_PATH) po/po2msg.sh
|
|
|
|
endif
|
2007-11-21 09:00:56 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
msgsdir = $(gg_libdir)/msgs
|
|
|
|
msgsdir_SQ = $(subst ','\'',$(msgsdir))
|
|
|
|
PO_TEMPLATE = po/git-gui.pot
|
|
|
|
ALL_POFILES = $(wildcard po/*.po)
|
|
|
|
ALL_MSGFILES = $(subst .po,.msg,$(ALL_POFILES))
|
|
|
|
|
|
|
|
$(PO_TEMPLATE): $(SCRIPT_SH) $(ALL_LIBFILES)
|
|
|
|
$(XGETTEXT) -kmc -LTcl -o $@ $(SCRIPT_SH) $(ALL_LIBFILES)
|
|
|
|
update-po:: $(PO_TEMPLATE)
|
|
|
|
$(foreach p, $(ALL_POFILES), echo Updating $p ; msgmerge -U $p $(PO_TEMPLATE) ; )
|
|
|
|
$(ALL_MSGFILES): %.msg : %.po
|
2007-12-07 08:51:15 +01:00
|
|
|
$(QUIET_MSGFMT0)$(MSGFMT) --statistics --tcl -l $(basename $(notdir $<)) -d $(dir $@) $< $(QUIET_MSGFMT1)
|
2007-02-12 08:04:00 +01:00
|
|
|
|
2007-11-21 09:00:56 +01:00
|
|
|
lib/tclIndex: $(ALL_LIBFILES) GIT-GUI-VARS
|
2007-05-18 01:52:45 +02:00
|
|
|
$(QUIET_INDEX)if echo \
|
|
|
|
$(foreach p,$(PRELOAD_FILES),source $p\;) \
|
2007-05-11 00:08:18 +02:00
|
|
|
auto_mkindex lib '*.tcl' \
|
2007-05-18 01:52:45 +02:00
|
|
|
| $(TCL_PATH) $(QUIET_2DEVNULL); then : ok; \
|
|
|
|
else \
|
2013-06-17 05:06:55 +02:00
|
|
|
echo >&2 " * $(TCL_PATH) failed; using unoptimized loading"; \
|
2007-05-18 01:52:45 +02:00
|
|
|
rm -f $@ ; \
|
|
|
|
echo '# Autogenerated by git-gui Makefile' >$@ && \
|
|
|
|
echo >>$@ && \
|
2016-10-20 18:33:17 +02:00
|
|
|
$(foreach p,$(PRELOAD_FILES) $(sort $(ALL_LIBFILES)),echo '$(subst lib/,,$p)' >>$@ &&) \
|
2007-05-18 01:52:45 +02:00
|
|
|
echo >>$@ ; \
|
|
|
|
fi
|
2007-05-08 05:36:31 +02:00
|
|
|
|
|
|
|
TRACK_VARS = \
|
|
|
|
$(subst ','\'',SHELL_PATH='$(SHELL_PATH_SQ)') \
|
2007-05-18 01:52:45 +02:00
|
|
|
$(subst ','\'',TCL_PATH='$(TCL_PATH_SQ)') \
|
2007-05-08 05:36:31 +02:00
|
|
|
$(subst ','\'',TCLTK_PATH='$(TCLTK_PATH_SQ)') \
|
2007-05-29 05:23:10 +02:00
|
|
|
$(subst ','\'',gitexecdir='$(gitexecdir_SQ)') \
|
2007-09-18 08:50:17 +02:00
|
|
|
$(subst ','\'',gg_libdir='$(libdir_SQ)') \
|
2007-11-21 09:00:56 +01:00
|
|
|
GITGUI_MACOSXAPP=$(GITGUI_MACOSXAPP) \
|
2007-05-08 05:36:31 +02:00
|
|
|
#end TRACK_VARS
|
|
|
|
|
2010-01-24 20:16:26 +01:00
|
|
|
GIT-GUI-VARS: FORCE
|
2007-05-08 05:36:31 +02:00
|
|
|
@VARS='$(TRACK_VARS)'; \
|
|
|
|
if test x"$$VARS" != x"`cat $@ 2>/dev/null`" ; then \
|
2013-06-17 05:06:55 +02:00
|
|
|
echo >&2 " * new locations or Tcl/Tk interpreter"; \
|
|
|
|
echo >$@ "$$VARS"; \
|
2007-05-08 05:36:31 +02:00
|
|
|
fi
|
2007-03-12 19:43:22 +01:00
|
|
|
|
2007-11-21 09:00:56 +01:00
|
|
|
ifdef GITGUI_MACOSXAPP
|
|
|
|
all:: git-gui Git\ Gui.app
|
|
|
|
endif
|
|
|
|
ifdef GITGUI_WINDOWS_WRAPPER
|
|
|
|
all:: git-gui
|
|
|
|
endif
|
|
|
|
all:: $(GITGUI_MAIN) lib/tclIndex $(ALL_MSGFILES)
|
2007-02-12 08:04:00 +01:00
|
|
|
|
|
|
|
install: all
|
2007-06-29 06:32:41 +02:00
|
|
|
$(QUIET)$(INSTALL_D0)'$(DESTDIR_SQ)$(gitexecdir_SQ)' $(INSTALL_D1)
|
|
|
|
$(QUIET)$(INSTALL_X0)git-gui $(INSTALL_X1) '$(DESTDIR_SQ)$(gitexecdir_SQ)'
|
2008-11-02 06:31:46 +01:00
|
|
|
$(QUIET)$(INSTALL_X0)git-gui--askpass $(INSTALL_X1) '$(DESTDIR_SQ)$(gitexecdir_SQ)'
|
2007-06-29 06:32:41 +02:00
|
|
|
$(QUIET)$(foreach p,$(GITGUI_BUILT_INS), $(INSTALL_L0)'$(DESTDIR_SQ)$(gitexecdir_SQ)/$p' $(INSTALL_L1)'$(DESTDIR_SQ)$(gitexecdir_SQ)/git-gui' $(INSTALL_L2)'$(DESTDIR_SQ)$(gitexecdir_SQ)/$p' $(INSTALL_L3) &&) true
|
2007-11-21 09:00:56 +01:00
|
|
|
ifdef GITGUI_WINDOWS_WRAPPER
|
|
|
|
$(QUIET)$(INSTALL_R0)git-gui.tcl $(INSTALL_R1) '$(DESTDIR_SQ)$(gitexecdir_SQ)'
|
|
|
|
endif
|
2007-06-29 06:32:41 +02:00
|
|
|
$(QUIET)$(INSTALL_D0)'$(DESTDIR_SQ)$(libdir_SQ)' $(INSTALL_D1)
|
|
|
|
$(QUIET)$(INSTALL_R0)lib/tclIndex $(INSTALL_R1) '$(DESTDIR_SQ)$(libdir_SQ)'
|
2007-11-21 09:00:56 +01:00
|
|
|
ifdef GITGUI_MACOSXAPP
|
|
|
|
$(QUIET)$(INSTALL_A0)'Git Gui.app' $(INSTALL_A1) '$(DESTDIR_SQ)$(libdir_SQ)'
|
|
|
|
$(QUIET)$(INSTALL_X0)git-gui.tcl $(INSTALL_X1) '$(DESTDIR_SQ)$(libdir_SQ)'
|
|
|
|
endif
|
|
|
|
$(QUIET)$(foreach p,$(ALL_LIBFILES) $(NONTCL_LIBFILES), $(INSTALL_R0)$p $(INSTALL_R1) '$(DESTDIR_SQ)$(libdir_SQ)' &&) true
|
|
|
|
$(QUIET)$(INSTALL_D0)'$(DESTDIR_SQ)$(msgsdir_SQ)' $(INSTALL_D1)
|
|
|
|
$(QUIET)$(foreach p,$(ALL_MSGFILES), $(INSTALL_R0)$p $(INSTALL_R1) '$(DESTDIR_SQ)$(msgsdir_SQ)' &&) true
|
2007-02-12 08:04:00 +01:00
|
|
|
|
2007-09-18 08:50:17 +02:00
|
|
|
uninstall:
|
|
|
|
$(QUIET)$(CLEAN_DST) '$(DESTDIR_SQ)$(gitexecdir_SQ)'
|
|
|
|
$(QUIET)$(REMOVE_F0)'$(DESTDIR_SQ)$(gitexecdir_SQ)'/git-gui $(REMOVE_F1)
|
2008-11-02 06:31:46 +01:00
|
|
|
$(QUIET)$(REMOVE_F0)'$(DESTDIR_SQ)$(gitexecdir_SQ)'/git-gui--askpass $(REMOVE_F1)
|
2007-09-18 08:50:17 +02:00
|
|
|
$(QUIET)$(foreach p,$(GITGUI_BUILT_INS), $(REMOVE_F0)'$(DESTDIR_SQ)$(gitexecdir_SQ)'/$p $(REMOVE_F1) &&) true
|
2007-11-21 09:00:56 +01:00
|
|
|
ifdef GITGUI_WINDOWS_WRAPPER
|
|
|
|
$(QUIET)$(REMOVE_F0)'$(DESTDIR_SQ)$(gitexecdir_SQ)'/git-gui.tcl $(REMOVE_F1)
|
|
|
|
endif
|
2007-09-18 08:50:17 +02:00
|
|
|
$(QUIET)$(CLEAN_DST) '$(DESTDIR_SQ)$(libdir_SQ)'
|
|
|
|
$(QUIET)$(REMOVE_F0)'$(DESTDIR_SQ)$(libdir_SQ)'/tclIndex $(REMOVE_F1)
|
2007-11-21 09:00:56 +01:00
|
|
|
ifdef GITGUI_MACOSXAPP
|
|
|
|
$(QUIET)$(REMOVE_F0)'$(DESTDIR_SQ)$(libdir_SQ)/Git Gui.app' $(REMOVE_F1)
|
|
|
|
$(QUIET)$(REMOVE_F0)'$(DESTDIR_SQ)$(libdir_SQ)'/git-gui.tcl $(REMOVE_F1)
|
|
|
|
endif
|
|
|
|
$(QUIET)$(foreach p,$(ALL_LIBFILES) $(NONTCL_LIBFILES), $(REMOVE_F0)'$(DESTDIR_SQ)$(libdir_SQ)'/$(notdir $p) $(REMOVE_F1) &&) true
|
|
|
|
$(QUIET)$(CLEAN_DST) '$(DESTDIR_SQ)$(msgsdir_SQ)'
|
|
|
|
$(QUIET)$(foreach p,$(ALL_MSGFILES), $(REMOVE_F0)'$(DESTDIR_SQ)$(msgsdir_SQ)'/$(notdir $p) $(REMOVE_F1) &&) true
|
2007-09-18 08:50:17 +02:00
|
|
|
$(QUIET)$(REMOVE_D0)'$(DESTDIR_SQ)$(gitexecdir_SQ)' $(REMOVE_D1)
|
2007-11-21 09:00:56 +01:00
|
|
|
$(QUIET)$(REMOVE_D0)'$(DESTDIR_SQ)$(msgsdir_SQ)' $(REMOVE_D1)
|
2007-09-18 08:50:17 +02:00
|
|
|
$(QUIET)$(REMOVE_D0)'$(DESTDIR_SQ)$(libdir_SQ)' $(REMOVE_D1)
|
|
|
|
$(QUIET)$(REMOVE_D0)`dirname '$(DESTDIR_SQ)$(libdir_SQ)'` $(REMOVE_D1)
|
|
|
|
|
2007-03-12 19:43:22 +01:00
|
|
|
dist-version:
|
2007-02-13 01:07:29 +01:00
|
|
|
@mkdir -p $(TARDIR)
|
|
|
|
@echo $(GITGUI_VERSION) > $(TARDIR)/version
|
|
|
|
|
2007-02-12 08:04:00 +01:00
|
|
|
clean::
|
2007-11-21 09:00:56 +01:00
|
|
|
$(RM_RF) $(GITGUI_MAIN) lib/tclIndex po/*.msg
|
|
|
|
$(RM_RF) GIT-VERSION-FILE GIT-GUI-VARS
|
|
|
|
ifdef GITGUI_MACOSXAPP
|
|
|
|
$(RM_RF) 'Git Gui.app'* git-gui
|
|
|
|
endif
|
|
|
|
ifdef GITGUI_WINDOWS_WRAPPER
|
|
|
|
$(RM_RF) git-gui
|
|
|
|
endif
|
2007-02-12 08:04:00 +01:00
|
|
|
|
2007-09-18 08:50:17 +02:00
|
|
|
.PHONY: all install uninstall dist-version clean
|
2010-01-24 20:16:26 +01:00
|
|
|
.PHONY: FORCE
|