HTML := index.html
CSS := style.css
PARTIALS := $(addprefix partials/, meta.html nav.html footer.html)
WELLKNOWN := $(addprefix .well-known/, keybase.txt)
FILES := $(HTML) $(CSS) sitemap.xml sitemap1.xml
site: $(addprefix build/, $(FILES) $(WELLKNOWN))
clean:
-rm $(addprefix build/, $(FILES))
build/%.html: src/%.html $(PARTIALS)
@./scripts/awink $< $@
@echo Compiled $< → $@
build/%.css: src/%.css
@install -Dm644 $< $@
@echo Compiled $< → $@
build/%.xml: src/%.xml
@install -Dm644 $< $@
@echo Compiled $< → $@
build/.well-known/%: .well-known/%
@install -Dm644 $< $@
@echo Compiled $< → $@
partials/%: