diff options
author | Junio C Hamano <junkio@cox.net> | 2005-09-23 10:41:40 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-09-24 11:26:22 -0700 |
commit | 229a7ed7ab3111b99fe6fb05c50c6687ae64c2b1 (patch) | |
tree | 927ade5f4b4aa0be61d1edd9f1d9fc79cffcaac6 /templates/Makefile | |
parent | [PATCH] CURLDIR in Makefile (diff) | |
download | tgif-229a7ed7ab3111b99fe6fb05c50c6687ae64c2b1.tar.xz |
Solaris: give a bit more built-in defaults.
Taking the make command line Peter Eriksen uses, give defaults
to SHELL_PATH, TAR, CURLDIR, NO_STRCASESTR, and INSTALL.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'templates/Makefile')
-rw-r--r-- | templates/Makefile | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/templates/Makefile b/templates/Makefile index 776e6c8009..221a086066 100644 --- a/templates/Makefile +++ b/templates/Makefile @@ -1,8 +1,9 @@ # make and install sample templates -INSTALL=install -prefix=$(HOME) -template_dir=$(prefix)/share/git-core/templates/ +INSTALL ?= install +TAR ?= tar +prefix ?= $(HOME) +template_dir ?= $(prefix)/share/git-core/templates/ # DESTDIR= all: boilerplates custom @@ -35,4 +36,5 @@ clean: install: all $(INSTALL) -d -m755 $(DESTDIR)$(template_dir) - tar Ccf blt - . | tar Cxf $(DESTDIR)$(template_dir) - + (cd blt && $(TAR) cf - .) | \ + (cd $(DESTDIR)$(template_dir) && $(TAR) xf -) |