X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=templates%2FMakefile;h=221a0860661a3adb43470aa22d30b54601223b3d;hb=d1c5f2a42d7b5c0e3d3862212dea1f09809c4963;hp=6b2a90071bcf1fc8e494b08f3738a34f35bb9cd0;hpb=e8c80638abc99928dba9ac832589749a531e2e21;p=git.git diff --git a/templates/Makefile b/templates/Makefile index 6b2a9007..221a0860 100644 --- a/templates/Makefile +++ b/templates/Makefile @@ -1,9 +1,10 @@ # 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 @@ -34,5 +35,6 @@ clean: 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 -)