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 $< $@