summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPhilipp Le <philipp-le-prviat@freenet.de>2020-04-27 22:29:23 +0200
committerPhilipp Le <philipp-le-prviat@freenet.de>2020-04-27 22:39:25 +0200
commit3491b12f231613dacbd61bb7771a03914c518cad (patch)
tree831466bf9548927dfb7fab7215d42e3635e72f03 /Makefile
downloaddcs-lecture-notes-3491b12f231613dacbd61bb7771a03914c518cad.zip
dcs-lecture-notes-3491b12f231613dacbd61bb7771a03914c518cad.tar.gz
dcs-lecture-notes-3491b12f231613dacbd61bb7771a03914c518cad.tar.bz2
Draft of Chapter 1
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..befa336
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,21 @@
+
+BUILD_DIR = build
+
+LATEXMK = latexmk -pdf -silent -synctex=1
+LATEXMK_PVC = $(LATEXMK) -pvc
+
+ALL_TARGETS = $(BUILD_DIR)/chapter01.pdf
+
+all: $(ALL_TARGETS)
+
+clean:
+ mkdir -p $(BUILD_DIR)
+ cd $(BUILD_DIR) ; rm -f *.aux *.fdb_latexmk *.fls *.lof *.log *.lot *.pdf *.synctex.gz
+
+$(BUILD_DIR)/%.pdf: main/%.tex
+ mkdir -p $(BUILD_DIR)
+ cd $(BUILD_DIR) ; $(LATEXMK) ../$<
+
+%-watch: main/%.tex
+ mkdir -p $(BUILD_DIR)
+ cd $(BUILD_DIR) ; $(LATEXMK_PVC) ../$<