summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 32b2e6d5e7b698a09d5725c1d57157fb98b71f23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
HTML := index.html
CSS  := style.css

PARTIALS := $(addprefix partials/, meta.html nav.html footer.html)

FILES := $(HTML) $(CSS) sitemap.xml

site: $(addprefix build/, $(FILES))

clean:
	-rm $(addprefix build/, $(FILES))

build/%.html: src/%.html $(PARTIALS)
	@./scripts/awink $< $@
	@echo Compiled $<  $@

build/%.css: src/%.css
	@install -Dm644 $< $@
	@echo Compiled $<  $@

build/sitemap.xml: src/sitemap.xml
	@install -Dm644 $< $@
	@echo Compiled $<  $@

partials/%: