From e5cc2ae8302bca6f7c4b25df344a4f18d953bb7f Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Wed, 1 Nov 2017 15:14:01 +0100 Subject: Starts essence of TecHWSW --- techwsw/makefile | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 techwsw/makefile (limited to 'techwsw/makefile') diff --git a/techwsw/makefile b/techwsw/makefile new file mode 100644 index 0000000..240e907 --- /dev/null +++ b/techwsw/makefile @@ -0,0 +1,29 @@ +# file settings +BUILD_DIR := build +DOCUMENT := essence_of_hwsw.tex + +# tex settings +TEX := xelatex \ + -interaction=nonstopmode \ + -halt-on-error \ + -output-directory=$(BUILD_DIR) + +# automated stuff +_DOCUMENT := $(BUILD_DIR)/$(DOCUMENT) + +_SVGS := $(shell find res/ -type f -name '*.svg') +_PDFS := $(patsubst %.svg, %.pdf,$(_SVGS)) + + +# recipes +.PHONY: build_dir +all: $(_DOCUMENT) + +$(_DOCUMENT): $(DOCUMENT) $(_PDFS) build_dir + $(TEX) $< + +$(_PDFS): res/%.pdf: res/%.svg $(_SVGS) + inkscape -z -D --file=$< --export-pdf=$@ + +build_dir: + mkdir -p $(BUILD_DIR)/tex -- cgit v1.2.1