aboutsummaryrefslogtreecommitdiff
path: root/docs/makefile
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2024-04-12 15:08:14 +0200
committerlonkaars <loek@pipeframe.xyz>2024-04-12 15:08:14 +0200
commit7dd019030560ad38fe4b93954a3a359ac5e43613 (patch)
treee25601c99f918b49f0f91fe1ad5e8ed9d95d4223 /docs/makefile
parente5de3732057827a6e2194b967e3a419591bcea34 (diff)
generate bad looking pdfs w/ makefile
Diffstat (limited to 'docs/makefile')
-rw-r--r--docs/makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/docs/makefile b/docs/makefile
index 4c1d21a..385ed09 100644
--- a/docs/makefile
+++ b/docs/makefile
@@ -1,4 +1,13 @@
all: plan.pdf
-%.pdf: %.adoc
- asciidoctor -r asciidoctor-pdf -b pdf $<
+include font.mk
+
+# PDFDEPS += $(ALL_FONTS)
+PDFDEPS += ./theme.yml
+
+ASCIIDOCTOR_ARGS += --backend pdf
+ASCIIDOCTOR_ARGS += --attribute pdf-theme=./theme.yml
+# ASCIIDOCTOR_ARGS += --attribute pdf-fontsdir=./res/font
+%.pdf: %.adoc $(PDFDEPS)
+ asciidoctor --require asciidoctor-pdf $(ASCIIDOCTOR_ARGS) $<
+