-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
42 lines (32 loc) · 925 Bytes
/
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
manuscript = main
references = $(wildcard *.bib)
latexopt = -halt-on-error -file-line-error
all: all-via-pdf
all-via-pdf: $(manuscript).tex $(references)
pdflatex $(latexopt) $<
bibtex $(manuscript).aux
pdflatex $(latexopt) $<
pdflatex $(latexopt) $<
all-via-dvi:
latex $(latexopt) $(manuscript)
bibtex $(manuscript).aux
latex $(latexopt) $(manuscript)
latex $(latexopt) $(manuscript)
dvipdf $(manuscript)
epub:
latex $(latexopt) $(manuscript)
bibtex $(manuscript).aux
mk4ht htlatex $(manuscript).tex 'xhtml,charset=utf-8,pmathml' ' -cunihtf -utf8 -cvalidate'
ebook-convert $(manuscript).html $(manuscript).epub
clean:
rm -f *.dvi *.toc *.aux *.out *.log *.bbl *.blg *.log *.spl *~ *.spl *.zip *.acn *.glo *.ist *.epub
realclean: clean
rm -rf $(manuscript).dvi
rm -f $(manuscript).pdf
%.ps :%.eps
convert $< $@
%.png :%.eps
convert $< $@
zip:
zip paper.zip *.tex *.eps *.bib
.PHONY: all clean