Add Makefiles

This commit is contained in:
Julian Ospald 2015-04-20 21:41:05 +02:00
parent 06f6c99867
commit 84cb32b99c
No known key found for this signature in database
GPG Key ID: 220CD1C5BDEED020
4 changed files with 70 additions and 0 deletions

20
Makefile Normal file
View File

@ -0,0 +1,20 @@
include common.mk
all: VL1 VL2
VL1:
$(MAKE) -C VL1
$(LN_S) VL1/VL1.pdf .
VL2:
$(MAKE) -C VL2
$(LN_S) VL2/VL2.pdf .
clean:
$(MAKE) -C VL1 clean
$(MAKE) -C VL2 clean
$(RM) VL1.pdf VL2.pdf
.PHONY: all clean VL1 VL2

22
VL1/Makefile Normal file
View File

@ -0,0 +1,22 @@
include ../common.mk
all: VL1.pdf VL1_handout.pdf
VL1.dvi: VL1.tex
$(LATEX) $<
VL1.pdf: VL1.tex
$(PDFLATEX) $<
VL1_handout.dvi: VL1_handout.tex
$(LATEX) $<
VL1_handout.pdf: VL1_handout.tex
$(PDFLATEX) $<
clean:
$(RM_R) "_minted-VL1" "_minted-VL1_handout"
$(RM) VL1.dvi VL1_handout.dvi VL1.pdf VL1_handout.pdf *.log *.aux *.nav *.snm *.toc *.out *.vrb *.gz
.PHONY: all clean

23
VL2/Makefile Normal file
View File

@ -0,0 +1,23 @@
include ../common.mk
all: VL2.pdf VL2_handout.pdf
VL2.dvi: VL2.tex
$(LATEX) $<
VL2.pdf: VL2.tex
$(PDFLATEX) $<
VL2_handout.dvi: VL2_handout.tex
$(LATEX) $<
VL2_handout.pdf: VL2_handout.tex
$(PDFLATEX) $<
clean:
$(RM_R) "_minted-VL2" "_minted-VL2_handout"
$(RM) VL2.dvi VL2_handout.dvi VL2.pdf VL2_handout.pdf *.log *.aux *.nav *.snm *.toc *.out *.vrb *.gz
.PHONY: all clean

5
common.mk Normal file
View File

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