summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/makefile b/makefile
index 6ed3114..43563a4 100644
--- a/makefile
+++ b/makefile
@@ -1,10 +1,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 $< $@