aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2024-12-05 21:18:20 +0800
committerRunxi Yu <me@runxiyu.org>2024-12-05 21:18:20 +0800
commit76c54c7a2a66fb251e568e3d648d193efe11eae9 (patch)
tree492ad87666a413dba735bfd70c7068d3043736fd /Makefile
parentNew repo locations and file structure (diff)
downloade2-spec-76c54c7a2a66fb251e568e3d648d193efe11eae9.tar.gz
e2-spec-76c54c7a2a66fb251e568e3d648d193efe11eae9.tar.zst
e2-spec-76c54c7a2a66fb251e568e3d648d193efe11eae9.zip
Another round of README updates :/
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 11 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index dcd9a2c..df8e0c2 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,18 @@
+# GNU Make is required
+
.PHONY: upload default
-default: language_description.html
+default: build/language_description.html build/index.html build/style.css
.SUFFIXES: .md .html
-.md.html:
+build/%.html: %.md
+ mkdir -p build
pandoc --mathml -so $@ -c style.css $<
-upload: language_description.html style.css
- rsync --mkpath language_description.html style.css runxiyu.org:/var/www/docs/e2/
+build/%.css: %.css
+ mkdir -p build
+ cp $< $@
+
+upload:
+ rsync --delete-after --recursive --mkpath build/ runxiyu.org:/var/www/docs/e2/