summaryrefslogtreecommitdiff
path: root/Makefile
blob: abf07a97c1d0f9e20b4d8bbfefa409ae72f1ea93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
pages = $(wildcard *.html)
sheets = $(wildcard *.css)
targets = $(foreach f,$(pages) $(sheets),public/$(f))

.PHONY: all clean site

all: site

site: $(targets)

public:
	mkdir $@

$(targets): public/%: % | public
	cp $< $@

clean:
	rm -r public