aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2024-03-31 10:40:45 +0200
committerJonas Smedegaard <dr@jones.dk>2024-03-31 10:48:07 +0200
commita36907e4a46b6dedda2e3df708ae79a6b9f348e7 (patch)
tree35babd6f83c56a8ad979fc41dbccc110cc23ff86 /Makefile
parent2b5f8d156053634fa845ad06b986fc73514e9b5d (diff)
add make target tidy-perl; isolate make target tidy-bibtex
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4caad12..b86d491 100644
--- a/Makefile
+++ b/Makefile
@@ -6,6 +6,8 @@ BASE_IRI = https://thoughtroam.abcdefghijklmnopqrstuvxyzæøå.dk/
ARTICLES = learn code use
+PERL_FILES = bin/hedgedoc2quarto bin/xmp2rdfxml
+
export HEDGEDOC_COOKIES_FILE = $(CURDIR)/cookies.txt
export HEDGEDOC_SERVER = https://pad.degrowth.net/
@@ -66,10 +68,15 @@ $(ARTICLES:%=pad-import-%): pad-import-%:
pad-import-ref:
hedgedoc import ref.bib
-tidy:
+tidy: tidy-bibtex tidy-perl
+
+tidy-bibtex:
bibclean -max-width 0 ref.bib > ref.bib~
mv ref.bib~ ref.bib
+tidy-perl:
+ perltidy -b -bext='/' --profile=.perltidyrc $(PERL_FILES)
+
$(ARTICLES:%=screening-of-%): screening-of-%:
QUARTO_LOG_LEVEL=quiet \
quarto render $*/index.qmd --to man --output - | man -l -