aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-12-08 20:34:53 -0300
committerEuAndreh <eu@euandre.org>2022-12-08 20:34:53 -0300
commitd33ceab8edb3d99e79a839b7f2c49a1a7620f520 (patch)
treea477bcd688f19e9b0cec315c83b613e40594b1ce /Makefile
parentsystem.scm: Parameterize "etc-shadow" group for dovecot2 configuration (diff)
downloadserver-d33ceab8edb3d99e79a839b7f2c49a1a7620f520.tar.gz
server-d33ceab8edb3d99e79a839b7f2c49a1a7620f520.tar.xz
Makefile: Build public/ out of data from the repository
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile35
1 files changed, 28 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 944f87c..f494fc0 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,23 @@
.POSIX:
+NAME = servers
+LIST = ~euandreh/public-inbox@lists.sr.ht
+TLD = euandre.org
+
+
+
+
+.SUFFIXES:
+.SUFFIXES: .in
+
+.in:
+ sed \
+ -e 's:@PROJECT_UC@:$(NAME):g' \
+ -e 's:@PROJECT@:$(NAME):g' \
+ -e 's:@MAILING_LIST@:$(LIST):g' \
+ -e 's:@TLD@:$(TLD):g' \
+ < $< > $@
+ if [ -x $< ]; then chmod +x $@; fi
+
all: public
@@ -12,8 +31,6 @@ clean:
dev-check: check public
-public:
-
HOST = toph
deploy:
scp \
@@ -27,13 +44,17 @@ deploy:
mkdir -p public .sentinel
touch $@
-public/favicon.svg: .sentinel/mkdir-public src/doc/favicon.svg
- cp src/doc/favicon.svg $@
+public/favicon.svg: .sentinel/mkdir-public aux/workflow/favicon.svg
+ cp aux/workflow/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/TODOs.html: .sentinel/mkdir-public aux/workflow/preamble.md TODOs.md
+ td -H | cat aux/workflow/preamble.md - | \
+ sh aux/workflow/md2html.sh -N $(NAME) -T TODOs > $@
+
+public/ci:
+ sh aux/ci/report.sh -o $@ -n $(NAME)
-public: public/favicon.svg public/style.css public/TODOs.html
+public: public/favicon.svg public/style.css public/TODOs.html public/ci