summaryrefslogtreecommitdiff
path: root/doc/doc.mk
diff options
context:
space:
mode:
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 $@ $<