aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-12-08 21:05:53 -0300
committerEuAndreh <eu@euandre.org>2022-12-08 21:05:53 -0300
commit87206f75003316b185ac85769d8226501aa4a5bd (patch)
treeafb72cedd4ec7f8cd30d9c1cac4a3de96e3b8f27 /Makefile
parentMakefile: Build public/ out of data from the repository (diff)
downloadtoph-87206f75003316b185ac85769d8226501aa4a5bd.tar.gz
toph-87206f75003316b185ac85769d8226501aa4a5bd.tar.xz
aux/: Embed files in repository
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 11 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index f494fc0..5c72514 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,9 @@
.POSIX:
-NAME = servers
-LIST = ~euandreh/public-inbox@lists.sr.ht
-TLD = euandre.org
+NAME = servers
+LIST_NAME = public-inbox
+LIST = ~euandreh/$(LIST_NAME)@lists.sr.ht
+SEARCH = https://lists.sr.ht/~euandreh/$(LIST_NAME)?search=%5B$(NAME)%5D
+TLD = euandre.org
@@ -11,10 +13,11 @@ TLD = euandre.org
.in:
sed \
- -e 's:@PROJECT_UC@:$(NAME):g' \
- -e 's:@PROJECT@:$(NAME):g' \
- -e 's:@MAILING_LIST@:$(LIST):g' \
- -e 's:@TLD@:$(TLD):g' \
+ -e 's|@PROJECT_UC@|$(NAME)|g' \
+ -e 's|@PROJECT@|$(NAME)|g' \
+ -e 's|@MAILING_LIST@|$(LIST)|g' \
+ -e 's|@LIST_SEARCH@|$(SEARCH)|g' \
+ -e 's|@TLD@|$(TLD)|g' \
< $< > $@
if [ -x $< ]; then chmod +x $@; fi
@@ -27,7 +30,7 @@ check:
clean:
rm -rf \
- .sentinel/ public/
+ .sentinel/ public/ aux/workflow/preamble.md
dev-check: check public