aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-11-27 18:46:01 -0300
committerEuAndreh <eu@euandre.org>2022-11-27 18:46:01 -0300
commit139d7dbc15f4467201c24af834a574f19a5926b4 (patch)
tree45d1ee54a755cfd3aa7f4585cd0aee82b257c992 /Makefile
parent.envrc: Remove unused file (diff)
downloadtoph-139d7dbc15f4467201c24af834a574f19a5926b4.tar.gz
toph-139d7dbc15f4467201c24af834a574f19a5926b4.tar.xz
Build TODOs.html on "public" target
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 19 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 51e4704..38ec1a5 100644
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,14 @@
.POSIX:
-all:
+all: public
check:
clean:
- rm -rf public/
+ rm -rf \
+ .sentinel/ public/
dev-check: check
@@ -19,3 +20,19 @@ deploy:
src/infrastructure/guix/system.scm \
toph:/etc/guix/
ssh toph reconfigure
+
+
+.sentinel/mkdir-public:
+ mkdir -p public .sentinel
+ touch $@
+
+public/favicon.svg: .sentinel/mkdir-public src/doc/favicon.svg
+ cp src/doc/favicon.svg $@
+
+public/style.css: .sentinel/mkdir-public
+ td -S > $@
+
+public/TODOs.html: .sentinel/mkdir-public TODOs.md
+ td -H | sh src/doc/md2html.sh -T TODOs > $@
+
+public: public/favicon.svg public/style.css public/TODOs.html