X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=templates%2FMakefile;h=221a0860661a3adb43470aa22d30b54601223b3d;hb=d1c5f2a42d7b5c0e3d3862212dea1f09809c4963;hp=776e6c80097ff5e56659b36c8bf22194c8b9dace;hpb=51017101c7a308745ba3c04944457f1dc6a55780;p=git.git diff --git a/templates/Makefile b/templates/Makefile index 776e6c80..221a0860 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 -)