]> pere.pagekite.me Git - text-angrefrist.git/commitdiff
Switch to asciidoctor for PDF and ePub generation.
authorPetter Reinholdtsen <pere@hungry.com>
Wed, 11 Oct 2023 12:33:58 +0000 (14:33 +0200)
committerPetter Reinholdtsen <pere@hungry.com>
Wed, 11 Oct 2023 12:33:58 +0000 (14:33 +0200)
Makefile

index 76063e6c17d88ab6dfbf0f76b0658e9c37e9f533..82219a1d4f89f93dad96d25d12d66382c61e11c4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,13 @@
-all: test.pdf
-       a2x -d book -f pdf test.adoc || dblatex test.xml
+all: rapport.pdf rapport.epub
+
+rapport.xml: *.adoc
+       asciidoctor -b docbook5 -d book rapport.adoc
+rapport.pdf: rapport.xml
+       dblatex $^
+rapport.epub: rapport.xml
+       dbtoepub $^
 
 clean:
        $(RM) *~
 
 clean:
        $(RM) *~
+distclean:
+       $(RM) rapport.xml rapport.pdf rapport.epub