summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 7f975aff084b961f545dec48ce5118753de0f1c3 (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
HTML := index.html
CSS  := style.css

PARTIALS := $(addprefix partials/, meta.html nav.html footer.html)
WELLKNOWN := $(addprefix .well-known/, keybase.txt)

FILES := $(HTML) $(CSS) robots.txt 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/%: src/%
	@install -Dm644 $< $@
	@echo Compiled $<  $@

build/.well-known/%: .well-known/%
	@install -Dm644 $< $@
	@echo Compiled $<  $@

partials/%: