aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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