From ce83411b44ffce77e57fb1b834c6008f4222a3fe Mon Sep 17 00:00:00 2001 From: xengineering Date: Thu, 4 Jan 2024 22:05:39 +0100 Subject: doc: Write section 'Versioning' This section is important to communicate how to interpret version numbers in the context of this device repository. --- doc/doc.mk | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'doc/doc.mk') 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 $@ $< -- cgit v1.2.3-70-g09d2