From 5ab3669780e889f2f3a1995bd0fb88a71284e239 Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Wed, 1 Nov 2023 17:52:13 +0100 Subject: [PATCH] Get PDF building working. --- mypapers/2023-tegnsett/Makefile | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/mypapers/2023-tegnsett/Makefile b/mypapers/2023-tegnsett/Makefile index 610ba5a343..627f88430f 100644 --- a/mypapers/2023-tegnsett/Makefile +++ b/mypapers/2023-tegnsett/Makefile @@ -1,10 +1,27 @@ -all: 2023-10-aksess-tegnsett.html 2023-10-aksess-tegnsett.pdf +GENERATED = \ + 2023-10-aksess-tegnsett.html \ + 2023-10-aksess-tegnsett-fop.fo \ + 2023-10-aksess-tegnsett.pdf + +all: $(GENERATED) 2023-10-aksess-tegnsett.html: 2023-10-aksess-tegnsett.adoc asciidoctor -o 2023-10-aksess-tegnsett.html 2023-10-aksess-tegnsett.adoc -2023-10-aksess-tegnsett.pdf: 2023-10-aksess-tegnsett.adoc +2023-10-aksess-tegnsett.xml: 2023-10-aksess-tegnsett.adoc asciidoctor -d article -b docbook5 -o 2023-10-aksess-tegnsett.xml 2023-10-aksess-tegnsett.adoc - xmlto --with-fop pdf 2023-10-aksess-tegnsett.xml + +2023-10-aksess-tegnsett-fop.fo: 2023-10-aksess-tegnsett.xml + xsltproc \ + --output $@.new \ + /usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl \ + $< + xmllint --format $@.new > $@ + $(RM) $@.new + +2023-10-aksess-tegnsett.pdf: 2023-10-aksess-tegnsett-fop.fo + fop -fo $^ -pdf $@ + clean: - $(RM) 2023-10-aksess-tegnsett.html 2023-10-aksess-tegnsett.xml + $(RM) 2023-10-aksess-tegnsett.xml $(GENERATED) + $(RM) *~ -- 2.51.0