summaryrefslogtreecommitdiff
path: root/makefile
blob: 43563a457da86af708ccd5d24a8a4be0024b5c6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
HTML = $(patsubst %.md,%.html,$(shell find -name '*.md'))
PREFIX = /usr/share/webapps/metamuffin-website

.PHONY: all clean
all: $(HTML)
clean:
	rm -vf $(HTML)
install:
	install -Dm644 style.css $(PREFIX)/style.css
	install -dm755 $(PREFIX)/blog
	install -Dm644 $(wildcard *.html) $(PREFIX)
	install -Dm644 $(wildcard blog/*.html) $(PREFIX)/blog

%.html: %.md process.py template.html
	python process.py $< $@