summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2024-01-02 22:52:42 +0100
committerxengineering <me@xengineering.eu>2024-01-03 12:03:43 +0100
commita13b2b67711ba722301319d322f5d6233cbc77b2 (patch)
tree6fcedaa133b44bfecedeb8591928678adbdd7bc4 /doc
parenta72e170df8344ac66c799156a744953cb762e08b (diff)
downloadsoundbox-a13b2b67711ba722301319d322f5d6233cbc77b2.tar
soundbox-a13b2b67711ba722301319d322f5d6233cbc77b2.tar.zst
soundbox-a13b2b67711ba722301319d322f5d6233cbc77b2.zip
doc: Add automated PDF generation
The build system should convert the documentation source files automatically to a single PDF file to make documentation generation trivial.
Diffstat (limited to 'doc')
-rw-r--r--doc/doc.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/doc.mk b/doc/doc.mk
new file mode 100644
index 0000000..059bd10
--- /dev/null
+++ b/doc/doc.mk
@@ -0,0 +1,10 @@
+DOC_BUILD_DIR := $(BUILD_DIR)/doc
+DOCS := soundbox-documentation
+PDF := $(DOCS:%=$(DOC_BUILD_DIR)/%.pdf)
+
+.PHONY: doc
+doc: $(PDF)
+
+$(BUILD_DIR)/%.pdf: %.tex
+ mkdir -p $(dir $@)
+ pdflatex -halt-on-error -output-directory $(DOC_BUILD_DIR) $<