site-ffhh/Makefile

29 lines
671 B
Makefile
Raw Normal View History

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