Browse Source

Add Makefiles

Julian Ospald 4 years ago
parent
commit
84cb32b99c
No account linked to committer's email address
4 changed files with 70 additions and 0 deletions
  1. 20
    0
      Makefile
  2. 22
    0
      VL1/Makefile
  3. 23
    0
      VL2/Makefile
  4. 5
    0
      common.mk

+ 20
- 0
Makefile View File

@@ -0,0 +1,20 @@
1
+include common.mk
2
+
3
+
4
+all: VL1 VL2
5
+
6
+VL1:
7
+	$(MAKE) -C VL1
8
+	$(LN_S) VL1/VL1.pdf .
9
+
10
+VL2:
11
+	$(MAKE) -C VL2
12
+	$(LN_S) VL2/VL2.pdf .
13
+
14
+clean:
15
+	$(MAKE) -C VL1 clean
16
+	$(MAKE) -C VL2 clean
17
+	$(RM) VL1.pdf VL2.pdf
18
+
19
+
20
+.PHONY: all clean VL1 VL2

+ 22
- 0
VL1/Makefile View File

@@ -0,0 +1,22 @@
1
+include ../common.mk
2
+
3
+
4
+all: VL1.pdf VL1_handout.pdf
5
+
6
+VL1.dvi: VL1.tex
7
+	$(LATEX) $<
8
+
9
+VL1.pdf: VL1.tex
10
+	$(PDFLATEX) $<
11
+
12
+VL1_handout.dvi: VL1_handout.tex
13
+	$(LATEX) $<
14
+
15
+VL1_handout.pdf: VL1_handout.tex
16
+	$(PDFLATEX) $<
17
+
18
+clean:
19
+	$(RM_R) "_minted-VL1" "_minted-VL1_handout"
20
+	$(RM) VL1.dvi VL1_handout.dvi VL1.pdf VL1_handout.pdf *.log *.aux *.nav *.snm *.toc *.out *.vrb *.gz
21
+
22
+.PHONY: all clean

+ 23
- 0
VL2/Makefile View File

@@ -0,0 +1,23 @@
1
+include ../common.mk
2
+
3
+
4
+all: VL2.pdf VL2_handout.pdf
5
+
6
+VL2.dvi: VL2.tex
7
+	$(LATEX) $<
8
+
9
+VL2.pdf: VL2.tex
10
+	$(PDFLATEX) $<
11
+
12
+VL2_handout.dvi: VL2_handout.tex
13
+	$(LATEX) $<
14
+
15
+VL2_handout.pdf: VL2_handout.tex
16
+	$(PDFLATEX) $<
17
+
18
+clean:
19
+	$(RM_R) "_minted-VL2" "_minted-VL2_handout"
20
+	$(RM) VL2.dvi VL2_handout.dvi VL2.pdf VL2_handout.pdf *.log *.aux *.nav *.snm *.toc *.out *.vrb *.gz
21
+
22
+
23
+.PHONY: all clean

+ 5
- 0
common.mk View File

@@ -0,0 +1,5 @@
1
+LATEX = latex -interaction=nonstopmode -shell-escape
2
+PDFLATEX = pdflatex -synctex=1 -interaction=nonstopmode -shell-escape
3
+RM = rm -f
4
+RM_R = rm -rf
5
+LN_S = ln -s