aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-03-27 08:58:40 -0300
committerEuAndreh <eu@euandre.org>2023-03-27 08:58:40 -0300
commit07ef3c2a2cce2f055a1174a8f49c4895dc9f6b30 (patch)
tree7ef129bd27807abcd750bd6a8455e8adf02d8657 /Makefile
parentreconfigure.sh: Fix permissions of rsynced files (diff)
downloadserver-07ef3c2a2cce2f055a1174a8f49c4895dc9f6b30.tar.gz
server-07ef3c2a2cce2f055a1174a8f49c4895dc9f6b30.tar.xz
Add minimum support for generating actual HTML files in public/
Notes
See CI logs with: git notes --ref=refs/notes/ci-logs show 07ef3c2a2cce2f055a1174a8f49c4895dc9f6b30 git notes --ref=refs/notes/ci-data show 07ef3c2a2cce2f055a1174a8f49c4895dc9f6b30 Exit status: 1 Duration: 12
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile23
1 files changed, 20 insertions, 3 deletions
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 = \