projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add git-am, applymbox replacement.
[git.git]
/
templates
/
Makefile
diff --git
a/templates/Makefile
b/templates/Makefile
index
6b2a900
..
221a086
100644
(file)
--- a/
templates/Makefile
+++ b/
templates/Makefile
@@
-1,9
+1,10
@@
# make and install sample templates
# make and install sample templates
-INSTALL=install
-prefix=$(HOME)
-template_dir=$(prefix)/share/git-core/templates/
-# dest=
+INSTALL ?= install
+TAR ?= tar
+prefix ?= $(HOME)
+template_dir ?= $(prefix)/share/git-core/templates/
+# DESTDIR=
all: boilerplates custom
find blt
all: boilerplates custom
find blt
@@
-34,5
+35,6
@@
clean:
rm -rf blt
install: all
rm -rf blt
install: all
- $(INSTALL) -d -m755 $(dest)$(template_dir)
- tar Ccf blt - . | tar Cxf $(dest)$(template_dir) -
+ $(INSTALL) -d -m755 $(DESTDIR)$(template_dir)
+ (cd blt && $(TAR) cf - .) | \
+ (cd $(DESTDIR)$(template_dir) && $(TAR) xf -)