summaryrefslogtreecommitdiffstats
path: root/docs/makefile
diff options
context:
space:
mode:
authorNaoki Pross <naopross@localhost.localdomain>2016-12-12 23:31:07 +0100
committerNaoki Pross <naopross@localhost.localdomain>2016-12-12 23:31:07 +0100
commit60e08117e10057b43c3f1ab3ad6c775453d6d9f7 (patch)
tree3dfcff433d6ba4dd06c14b341a9fec80a123015a /docs/makefile
downloadPDI-60e08117e10057b43c3f1ab3ad6c775453d6d9f7.tar.gz
PDI-60e08117e10057b43c3f1ab3ad6c775453d6d9f7.zip
moved everything to version control
Diffstat (limited to 'docs/makefile')
-rw-r--r--docs/makefile30
1 files changed, 30 insertions, 0 deletions
diff --git a/docs/makefile b/docs/makefile
new file mode 100644
index 0000000..3cee7e4
--- /dev/null
+++ b/docs/makefile
@@ -0,0 +1,30 @@
+# documents
+DOCUMENT := pdi
+BIBLIOGRAPHY := pdi
+
+# folder structure settings
+BUILD_DIR := build
+
+# resources
+SVGS := $(wildcard res/images/*.svg)
+PDFS := $(patsubst %.svg,%.pdf,$(SVGS))
+
+# compiler settings
+TEX := lualatex
+BIB := biber
+
+# recipes
+.PHONY: all build clean
+all: build
+
+build: $(PDFS)
+ $(TEX) --output-directory=$(BUILD_DIR) $(DOCUMENT)
+ $(BIB) --output-directory=$(BUILD_DIR) $(BIBLIOGRAPHY)
+ $(TEX) --output-directory=$(BUILD_DIR) $(DOCUMENT)
+ $(TEX) --output-directory=$(BUILD_DIR) $(DOCUMENT)
+
+$(PDFS): res/%.pdf: res/%.svg $(SVGS)
+ inkscape -z -D --file=$< --export-pdf=$@
+
+clean:
+ rm -i $(BUILD_DIR)/*