summaryrefslogtreecommitdiffstats
path: root/techwsw/makefile
diff options
context:
space:
mode:
authorNao Pross <naopross@thearcway.org>2017-11-01 15:14:01 +0100
committerNao Pross <naopross@thearcway.org>2017-11-01 15:14:01 +0100
commite5cc2ae8302bca6f7c4b25df344a4f18d953bb7f (patch)
treee8754729dcf44d545220b123d1b346244d492d2f /techwsw/makefile
parentAdded circuit diagrams for inverter, non-inverter and summing opamp (diff)
downloadEssence-e5cc2ae8302bca6f7c4b25df344a4f18d953bb7f.tar.gz
Essence-e5cc2ae8302bca6f7c4b25df344a4f18d953bb7f.zip
Starts essence of TecHWSW
Diffstat (limited to '')
-rw-r--r--techwsw/makefile29
1 files changed, 29 insertions, 0 deletions
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