mirror of
https://github.com/git/git.git
synced 2024-11-19 02:04:06 +01:00
15 lines
463 B
Makefile
15 lines
463 B
Makefile
|
all: git-gui
|
||
|
|
||
|
gitexecdir := $(shell git --exec-path)
|
||
|
INSTALL = install
|
||
|
|
||
|
DESTDIR_SQ = $(subst ','\'',$(DESTDIR))
|
||
|
gitexecdir_SQ = $(subst ','\'',$(gitexecdir))
|
||
|
|
||
|
GITGUI_BUILTIN = git-citool
|
||
|
|
||
|
install: all
|
||
|
$(INSTALL) -d -m755 '$(DESTDIR_SQ)$(gitexecdir_SQ)'
|
||
|
$(INSTALL) git-gui '$(DESTDIR_SQ)$(gitexecdir_SQ)'
|
||
|
$(foreach p,$(GITGUI_BUILTIN), rm -f '$(DESTDIR_SQ)$(gitexecdir_SQ)/$p' && ln '$(DESTDIR_SQ)$(gitexecdir_SQ)/git-gui' '$(DESTDIR_SQ)$(gitexecdir_SQ)/$p' ;)
|