-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
54 lines (44 loc) · 1.09 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
TEX = pdflatex -shell-escape -interaction=nonstopmode -file-line-error -output-directory ./out/
PROJECT = lambda
UNAME := $(shell uname)
ifeq ($(UNAME), windows32) #set windows REMOVE and REMOVE_DIR
REMOVE = del
REMOVE_DIR = rd /s /q
OUT_PATH = .\out\\
endif
ifeq ($(UNAME), CYGWIN_NT-10.0-WOW) # test case
REMOVE = rm
REMOVE_DIR = rm -r
OUT_PATH = ./out/
endif
ifeq ($(UNAME), Linux)
REMOVE = rm
REMOVE_DIR = rm -r
OUT_PATH = ./out/
endif
all: delprev $(PROJECT).pdf delprevpresent presentation.pdf
presentation.pdf:
$(TEX) presentation.tex
delprevpresent:
$(REMOVE) $(OUT_PATH)presentation.pdf
$(PROJECT).pdf: $(PROJECT).tex
$(TEX) $(PROJECT).tex
delprev:
$(REMOVE) $(OUT_PATH)$(PROJECT).pdf
nice: all clean
clean:
$(REMOVE) $(OUT_PATH)*.aux
$(REMOVE) *.aux
$(REMOVE) $(OUT_PATH)*.log
$(REMOVE) *.log
$(REMOVE) $(OUT_PATH)*.dvi
$(REMOVE) *.dvi
$(REMOVE) $(OUT_PATH)*.fdb_latexmk
$(REMOVE) *.fdb_latexmk
$(REMOVE) $(OUT_PATH)*.fls
$(REMOVE) *.fls
$(REMOVE) $(OUT_PATH)*.nav
$(REMOVE) $(OUT_PATH)*.out
$(REMOVE) $(OUT_PATH)*.snm
$(REMOVE) $(OUT_PATH)*.toc
$(REMOVE_DIR) _minted-lambda