ignition/Makefile

23 lines
380 B
Makefile

.PHONY: \
all \
clean \
publish
.DEFAULT_GOAL := all
clean:
rm -f *.ign
define genrules
$(patsubst %.yaml,%.ign,$(1)): $(1) $$(shell sed -rn 's/.*local: (.*)/\1/p' $(1))
butane -d . $$< > $$@
all: $(patsubst %.yaml,%.ign,$(1))
endef
$(foreach t,$(wildcard *.yaml),$(eval $(call genrules,$(t))))
publish: \
nvr1.ign
rsync -rti $^ files.pyrocufflink.blue:public_html/