-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
55 lines (49 loc) · 2.02 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
55
# ====================================================================
#
# Filename: Makefile
#
# Description: Makefile to compile and produce PDF file.
#
# Created: Wednesday 15 June 2016 12:15:42 IST
# Compiler: pdflatex, sage
#
# Author: Amritpal Singh, [email protected]
# License: GNU General Public License
# Copyright: Copyright (c) 2016, Great Developers
#
# ====================================================================
# ====================================================================
# varibles
# ====================================================================
FILE = main
CC = pdflatex
BIB = biber
SS = sage
# ====================================================================
# Special target
# ====================================================================
.PHONY: clean view
# ====================================================================
# Main target
# ====================================================================
all: $(FILE).pdf
# ====================================================================
# Sub target
# ====================================================================
$(FILE).pdf:$(FILE).tex
$(CC) $(FILE)
$(BIB) $(FILE)
$(SS) $(FILE).sagetex.$(SS)
$(CC) $(FILE)
$(CC) $(FILE)
# ====================================================================
# Open the output pdf file
# ====================================================================
view:
evince $(FILE).pdf
# ====================================================================
# Remove all the unnecessary files
# ====================================================================
clean:
rm -f *.ps *.pdf *.log *.aux *.out *.dvi *.bbl *.blg *.lot \
*.sagetex.* *.fls *.bcf *.toc *.xml *.lof *.lochart