git-gui: Added revert changes command.
[debian-git.git] / Makefile
blobe3e871f7c4e84d81f4280d40a46c549fa56749e9
1 all: git-gui
3 gitexecdir := $(shell git --exec-path)
4 INSTALL = install
6 DESTDIR_SQ = $(subst ','\'',$(DESTDIR))
7 gitexecdir_SQ = $(subst ','\'',$(gitexecdir))
9 GITGUI_BUILTIN = git-citool
11 install: all
12 $(INSTALL) -d -m755 '$(DESTDIR_SQ)$(gitexecdir_SQ)'
13 $(INSTALL) git-gui '$(DESTDIR_SQ)$(gitexecdir_SQ)'
14 $(foreach p,$(GITGUI_BUILTIN), rm -f '$(DESTDIR_SQ)$(gitexecdir_SQ)/$p' && ln '$(DESTDIR_SQ)$(gitexecdir_SQ)/git-gui' '$(DESTDIR_SQ)$(gitexecdir_SQ)/$p' ;)