-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
47 lines (36 loc) · 1.11 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
#!Bash
# This makefile is for compiling LaTeX into pdf with bib libraries.
# On Windows, it requires Make tool and you may be able to add this tool by adding the MinGW to path:
# PATH=$PATH:/MINGW/msys/1.0/bin
# where /MINGW is where MinGW is installed. The line ending should be LF.
PROJECT=funny_names
LATEXFLAGS?=-interaction=nonstopmode -file-line-error
#pdf: ps
# ps2pdf ${PROJECT}.ps
#pdf-print: ps
# ps2pdf -dColorConversionStrategy=/LeaveColorUnchanged -dPDFSETTINGS=/printer ${PROJECT}.ps
#text: html
# html2text -width 100 -style pretty ${PROJECT}/${PROJECT}.html | sed -n '/./,$$p' | head -n-2 >${PROJECT}.txt
#html:
# @#latex2html -split +0 -info "" -no_navigation ${PROJECT}
# htlatex ${PROJECT}
#ps: dvi
# dvips -t letter ${PROJECT}.dvi
#dvi:
# latex ${PROJECT}
# bibtex ${PROJECT}||true
# latex ${PROJECT}
# latex ${PROJECT}
.DEFAULT: all
.PHONY: all clean
all:
pdflatex $(LATEXFLAGS) $(PROJECT)
bibtex $(PROJECT)||true
pdflatex $(LATEXFLAGS) $(PROJECT)
pdflatex $(LATEXFLAGS) $(PROJECT)
read:
evince ${PROJECT}.pdf &
aread:
acroread ${PROJECT}.pdf
clean:
rm -f ${PROJECT}.{ps,log,aux,out,dvi,bbl,blg}