-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
45 lines (34 loc) · 1.16 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
# From http://www.wlug.org.nz/LatexMakefiles
TARGET=trim
FIGURES=pairs-before.eps pairs-after.eps mono.eps bi.eps bi-prefixed.eps trimmed.eps
# make pdf by default
all: ${TARGET}.pdf
# it doesn't really need the .dvi, but this way all the refs are right
%.pdf : %.dvi
pdflatex $*
${TARGET}.bbl: apertium.bib
# in case we don't already have a .aux file listing citations
# this should probably be a separate makefile target/dependency instead
# of doing it every time... but *shrug*
latex ${TARGET}.tex
# get the citations out of the bibliography
bibtex ${TARGET}
# do it again in case there are out-of-order cross-references
@latex ${TARGET}.tex
# Figures printable with tgif:
%.eps: %.obj
tgif -print -eps $<
${TARGET}.dvi: ${TARGET}.bbl ${TARGET}.tex ${FIGURES}
@latex ${TARGET}.tex
# shortcut, so we can say "make ps"
ps: ${TARGET}.ps
${TARGET}.ps: ${TARGET}.dvi
@dvips -t a4 ${TARGET}.dvi
clean:
rm -f ${TARGET}.{log,aux,ps,dvi,bbl,blg,log} ${FIGURES}.eps
reallyclean: clean
rm -f ${TARGET}.{ps,pdf}
getbib:
wget "http://bibsonomy.org/bib/user/unhammer/apertium?bibtex.entriesPerPage=100" -O apertium.bib
touch apertium.bib
PHONY : ps all clean reallyclean getbib