forked from openshmem-org/specification
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (27 loc) · 883 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
TARGET=main_spec
# 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: ${TARGET}.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*
pdflatex ${TARGET}.tex
# get the citations out of the bibliography
bibtex ${TARGET}
# do it again in case there are out-of-order cross-references
@pdflatex ${TARGET}.tex
#${TARGET}.dvi: ${TARGET}.bbl ${TARGET}.tex
${TARGET}.dvi: ${TARGET}.tex
@pdflatex ${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}
veryclean: clean
rm -f ${TARGET}.{ps,pdf,out}
PHONY : ps all clean reallyclean