aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2024-06-03 07:10:46 +0200
committerJonas Smedegaard <dr@jones.dk>2024-06-04 17:35:42 +0200
commit5215fd05ebecdf5a86758856ad17edc216105bb7 (patch)
tree3d77af6092c5e7e598f268cf824593a8ac48f156 /Makefile
parent29b7abc2c64941c677d9881c1e258d4e4cc9aab9 (diff)
move tags to independent pages
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 06e29ea..d6f72f8 100644
--- a/Makefile
+++ b/Makefile
@@ -28,7 +28,7 @@ all: preview
preview:
quarto preview
-render:
+render: $(ANNOT_TAGS:%=annot/%/index.qmd)
quarto render
publish:
@@ -53,11 +53,14 @@ annot-sync:
annot-render:
gooseberry make --uri urn:x-pdf:923a0c10ff1cdb4db772a8a948176c52 --clear --force
+
+$(ANNOT_TAGS:%=annot/%/index.qmd): annot/%/index.qmd: ~/gooseberry/%.md
+ @mkdir --parents $(dir $@)
perl -p \
-e 's/^#(?=\s)/##/g;' \
-e 's/^(?:Group|Created|Tags):.*\K/ /g;' \
-e 's/^\[See in context\].*//g;' \
- $(ANNOT_TAGS:%=~/gooseberry/%.md) > worlding/_annot.md
+ $< > $@
cal-all: cal-fetch cal-render cal-publish