From 07ef3c2a2cce2f055a1174a8f49c4895dc9f6b30 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Mon, 27 Mar 2023 08:58:40 -0300 Subject: Add minimum support for generating actual HTML files in public/ --- Makefile | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 7cb462e..708b1a0 100644 --- a/Makefile +++ b/Makefile @@ -47,9 +47,26 @@ clean: public/ src/secrets/*.txt packages system \ -public: - mkdir -p public - echo xablau > public/index.html +public/favicon.svg: + mkdir -p $(@D) + cp doc/favicon.svg $@ + +public/style.css: + mkdir -p $(@D) + td -S > $@ + +html-deps = \ + public/favicon.svg \ + public/style.css \ + +public/index.html: README.md $(html-deps) + sh doc/md2html.sh -T 'README' < README.md > $@ + +public/TODOs.html: TODOs.md $(html-deps) + td -H | sh doc/md2html.sh -T 'TODOs' > $@ + +public: \ + public/index.html public/TODOs.html prod-secrets.txt.gpg = \ -- cgit v1.2.3