summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: d64c7e73511e6fc60d09b73d1ea2e9094e863299 (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
26
27
28
29
30
31
32
33
34
35
HTML := index.html journal.html about.html
CSS  := style.css
RESOURCES := glider.png

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

FILES := $(HTML) $(CSS) sitemap.xml pgp-key.txt \
         $(addprefix resources/, $(RESOURCES))

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/resources/%: resources/%
	@install -Dm644 $< $@
	@echo Compiled $<  $@

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

build/pgp-key.txt: src/pgp-key.txt
	@install -Dm644 $< $@
	@echo Compiled $<  $@

partials/%: