1 # make and install sample templates
6 template_dir ?= $(prefix)/share/git-core/templates/
9 all: boilerplates custom
12 # Put templates that can be copied straight from the source
13 # in a file direc--tory--file in the source. They will be
14 # just copied to the destination.
16 ls *--* 2>/dev/null | \
17 while read boilerplate; \
19 case "$$boilerplate" in *~) continue ;; esac && \
20 dst=`echo "$$boilerplate" | sed -e 's|^this|.|;s|--|/|g'` && \
21 dir=`expr "$$dst" : '\(.*\)/'` && \
22 mkdir -p blt/$$dir && \
23 case "$$boilerplate" in \
25 *) cp $$boilerplate blt/$$dst ;; \
29 # If you need build-tailored templates, build them into blt/
30 # directory yourself here.
32 : no custom templates yet
38 $(INSTALL) -d -m755 $(DESTDIR)$(template_dir)
39 (cd blt && $(TAR) cf - .) | \
40 (cd $(DESTDIR)$(template_dir) && $(TAR) xf -)