-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (37 loc) · 1.44 KB
/
Makefile
File metadata and controls
48 lines (37 loc) · 1.44 KB
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
#!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=FaradayProtocol CooperativityEnhancement
LATEXFLAGS?=-interaction=nonstopmode -file-line-error -shell-escape
TEMPSUFFS=ps log aux out dvi bbl blg auxlock
#pdf: ps
# $(foreach proj,$(PROJECT),ps2pdf ${proj}.ps;)
#pdf-print: ps
# $(foreach proj,$(PROJECT),ps2pdf -dColorConversionStrategy=/LeaveColorUnchanged -dPDFSETTINGS=/printer ${proj}.ps;)
#text: html
# $(foreach proj,$(PROJECT),html2text -width 100 -style pretty ${proj}/${proj}.html | sed -n '/./,$$p' | head -n-2 >${proj}.txt;)
#html:
# $(foreach proj,$(PROJECT),@#latex2html -split +0 -info "" -no_navigation ${proj}; \
# htlatex ${proj};)
#ps: dvi
# $(foreach proj,$(PROJECT),dvips -t letter ${proj}.dvi;)
#dvi:
# $(foreach proj,$(PROJECT),latex ${proj}; \
# bibtex ${proj}||true; \
# latex ${proj}; \
# latex ${proj};)
.DEFAULT: all
.PHONY: all clean
all:
$(foreach proj,$(PROJECT), pdflatex $(LATEXFLAGS) $(proj); \
bibtex $(proj)||true; \
pdflatex $(LATEXFLAGS) $(proj); \
pdflatex $(LATEXFLAGS) $(proj);)
read:
evince $(foreach proj,$(PROJECT),${proj}.pdf ) &
aread:
acroread $(foreach proj,$(PROJECT),${proj}.pdf )
clean:
rm -f $(foreach proj,$(PROJECT),$(foreach suff, $(TEMPSUFFS), $(proj).${suff}))