diff options
author | Nao Pross <naopross@thearcway.org> | 2017-10-25 23:40:31 +0200 |
---|---|---|
committer | Nao Pross <naopross@thearcway.org> | 2017-10-25 23:40:31 +0200 |
commit | f7664e9009e80f9c5fa80046ae7b5dcbf2a7e3a8 (patch) | |
tree | 496612556620aa65a1728cb8d659ff7ce01fca4b /electronics/makefile | |
download | Essence-f7664e9009e80f9c5fa80046ae7b5dcbf2a7e3a8.tar.gz Essence-f7664e9009e80f9c5fa80046ae7b5dcbf2a7e3a8.zip |
First commit for electronics
Diffstat (limited to 'electronics/makefile')
-rw-r--r-- | electronics/makefile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/electronics/makefile b/electronics/makefile new file mode 100644 index 0000000..44b9a47 --- /dev/null +++ b/electronics/makefile @@ -0,0 +1,23 @@ +# file settings +BUILD_DIR := build +DOCUMENT := essence_of_electronics.tex + +# tex settings +TEX := lualatex \ + -interaction=nonstopmode \ + -halt-on-error \ + -output-directory=$(BUILD_DIR) + +# automated stuff +_DOCUMENT := $(BUILD_DIR)/$(DOCUMENT) +_DOCUMENT_SRC := $(patsubst %.pdf,%.tex,$(DOCUMENT)) + +# recipes +.PHONY: build_dir +all: $(_DOCUMENT) + +$(_DOCUMENT): $(_DOCUMENT_SRC) build_dir + $(TEX) $< + +build_dir: + mkdir -p $(BUILD_DIR)/tex |