8 lines
355 B
Makefile
8 lines
355 B
Makefile
EXCLUDE := templates/* charts/* Chart.yaml requirement* values.yaml Makefile utils/*
|
|
FILES := $(shell find * -type f $(foreach e,$(EXCLUDE), -not -path "$(e)") )
|
|
|
|
templates/_partials.tpl: Makefile $(FILES)
|
|
echo Generating $(CURDIR)/$@
|
|
rm -f $@
|
|
for i in $(FILES); do printf '{{ define "'$$i'" }}' >> $@; cat $$i >> $@; printf "{{ end }}\n" >> $@; done
|