diff options
Diffstat (limited to 'doc/doc.mk')
-rw-r--r-- | doc/doc.mk | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -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 $@ $< |