summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-10-04 13:54:26 +0200
committermetamuffin <metamuffin@disroot.org>2025-10-04 13:54:26 +0200
commite5760fd94165ba3c5da1500425c7ade4dd9e52bc (patch)
treed0ecc724cdd15cec1a23cf0524a2b1785b40d3af
parentff18d183fb6eacd7d415d4ff01b2e668b8b088f7 (diff)
downloadmetamuffin-website-e5760fd94165ba3c5da1500425c7ade4dd9e52bc.tar
metamuffin-website-e5760fd94165ba3c5da1500425c7ade4dd9e52bc.tar.bz2
metamuffin-website-e5760fd94165ba3c5da1500425c7ade4dd9e52bc.tar.zst
make install target
-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 $< $@