summaryrefslogtreecommitdiff
path: root/doc/doc.mk
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2024-01-04 22:05:39 +0100
committerxengineering <me@xengineering.eu>2024-01-05 10:52:04 +0100
commitce83411b44ffce77e57fb1b834c6008f4222a3fe (patch)
treea6fe6814e038ed9e6a1f1a3f4898aa9cc29f5a63 /doc/doc.mk
parent15285f111eae401663a459344e99e4e351ea3207 (diff)
downloadsoundbox-ce83411b44ffce77e57fb1b834c6008f4222a3fe.tar
soundbox-ce83411b44ffce77e57fb1b834c6008f4222a3fe.tar.zst
soundbox-ce83411b44ffce77e57fb1b834c6008f4222a3fe.zip
doc: Write section 'Versioning'
This section is important to communicate how to interpret version numbers in the context of this device repository.
Diffstat (limited to 'doc/doc.mk')
-rw-r--r--doc/doc.mk14
1 files changed, 11 insertions, 3 deletions
diff --git a/doc/doc.mk b/doc/doc.mk
index 8c56847..351cd48 100644
--- a/doc/doc.mk
+++ b/doc/doc.mk
@@ -1,11 +1,19 @@
DOC_BUILD_DIR := $(BUILD_DIR)/doc
DOCS := documentation
-PDF := $(DOCS:%=$(DOC_BUILD_DIR)/%.pdf)
+DOCUMENTS := $(DOCS:%=$(DOC_BUILD_DIR)/%.pdf)
+
+DIAGRAMS_BUILD_DIR := $(DOC_BUILD_DIR)/diagrams
+DIAGRAMS := device-semver
+IMAGES := $(DIAGRAMS:%=$(DIAGRAMS_BUILD_DIR)/%.pdf)
.PHONY: doc
-doc: $(PDF)
+doc: $(DOCUMENTS)
-$(BUILD_DIR)/%.pdf: %.tex
+$(DOC_BUILD_DIR)/%.pdf: doc/%.tex $(IMAGES)
mkdir -p $(dir $@)
pdflatex -halt-on-error -output-directory $(DOC_BUILD_DIR) $<
pdflatex -halt-on-error -output-directory $(DOC_BUILD_DIR) $<
+
+$(DIAGRAMS_BUILD_DIR)/%.pdf: doc/diagrams/%.svg
+ mkdir -p $(dir $@)
+ inkscape -o $@ $<