site-ffhh/Makefile

29 lines
671 B
Makefile
Raw Normal View History

2017-10-22 21:37:45 +02:00
sites: clean info sites/ffhh sites/ffhh-sued
2017-10-22 21:37:45 +02:00
info: config/defaults.erb template/info.erb
erb -T- config/defaults.erb template/$@.erb >$@
.PHONY: clean
clean:
2017-10-22 21:37:45 +02:00
rm -rf sites
rm -f info
sites/%: config/%.erb
mkdir -p $@
cd $@ && $(MAKE) -f ../../Makefile site SITE=$(@F)
site: siteclean site.mk site.conf modules
.PHONY: siteclean
siteclean:
rm -f site.mk site.conf modules
modules:
2017-10-22 21:37:45 +02:00
erb -T- ../../config/defaults.erb ../../config/$(SITE).erb ../../template/$@.erb >$@
site.conf:
2017-10-22 21:37:45 +02:00
erb -T- ../../config/defaults.erb ../../config/$(SITE).erb ../../template/$@.erb >$@
site.mk:
2017-10-22 21:37:45 +02:00
erb -T- ../../config/defaults.erb ../../config/$(SITE).erb ../../template/$@.erb >$@