diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2006-11-15 20:04:17 -0500 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2006-11-17 23:56:14 -0500 |
commit | b3678bacbcd2dc0e1c61fd91f4146d0c037e626f (patch) | |
tree | 0929e00a835285eb5b677f025d5b7c9ea902d4f5 /Makefile | |
parent | e8ab64461968392f126b0a0e2fef4ce8bdcca623 (diff) | |
download | git-b3678bacbcd2dc0e1c61fd91f4146d0c037e626f.tar.gz git-b3678bacbcd2dc0e1c61fd91f4146d0c037e626f.tar.xz |
git-gui: Created makefile to install the program.
Since we want to be installed in gitexecdir so that "git gui" works we
can guess where that directory is by asking the git wrapper executable
and locating ourselves at the same location using the same install
rules as core git.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 000000000..e3e871f7c --- /dev/null +++ b/Makefile @@ -0,0 +1,14 @@ +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' ;) |