From 76c54c7a2a66fb251e568e3d648d193efe11eae9 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Thu, 5 Dec 2024 21:18:20 +0800 Subject: Another round of README updates :/ --- Makefile | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'Makefile') 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/ -- cgit v1.2.3