source: doc/papers/general/Makefile @ cc7bbe6

ADTast-experimentalenumpthread-emulationqualifiedEnum
Last change on this file since cc7bbe6 was 3b1825b, checked in by Peter A. Buhr <pabuhr@…>, 6 years ago

seperate bibtex and latex library files in Makefile variables

  • Property mode set to 100644
File size: 2.5 KB
Line 
1## Define the configuration variables.
2
3Build = build
4Figures = figures
5Macros = ../AMA/AMA-stix/ama
6TeXLIB = .:${Macros}:${Build}:
7LaTeX  = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error -output-directory=${Build}
8BibTeX = BIBINPUTS=../../bibliography: && export BIBINPUTS && bibtex
9
10MAKEFLAGS = --no-print-directory # --silent
11VPATH = ${Build} ${Figures} evaluation
12
13## Define the text source files.
14
15SOURCES = ${addsuffix .tex, \
16Paper \
17}
18
19FIGURES = ${addsuffix .tex, \
20Cdecl \
21}
22
23PICTURES = ${addsuffix .pstex, \
24}
25
26PROGRAMS = ${addsuffix .tex, \
27}
28
29GRAPHS = ${addsuffix .tex, \
30timing \
31}
32
33## Define the documents that need to be made.
34
35DOCUMENT = Paper.pdf
36BASE = ${basename ${DOCUMENT}}
37
38# Directives #
39
40.PHONY : all clean                                      # not file names
41
42all : ${DOCUMENT}
43
44clean :
45        @rm -frv ${DOCUMENT} ${BASE}.ps WileyNJD-AMA.bst ${BASE}.out.ps ${Build}
46
47Paper.zip :
48        zip -x general/.gitignore -x general/Paper.out.ps -x general/Paper.tex.plain -x -x general/WileyNJD-AMA.bst general/"*evaluation*" -x general/evaluation.zip \
49                -x general/mail -x general/response -x general/test.c -x general/Paper.ps -x general/"*build*" -r Paper.zip general pl.bib
50
51evaluation.zip :
52        zip -x evaluation/.gitignore -x evaluation/timing.xlsx -x evaluation/timing.dat -r evaluation.zip evaluation
53
54# File Dependencies #
55
56${DOCUMENT} : ${BASE}.ps
57        ps2pdf $<
58
59${BASE}.ps : ${BASE}.dvi
60        dvips ${Build}/$< -o $@
61
62${BASE}.dvi : Makefile ${BASE}.out.ps ${Macros}/WileyNJD-v2.cls WileyNJD-AMA.bst ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} \
63                ../../bibliography/pl.bib | ${Build}
64        # Must have *.aux file containing citations for bibtex
65        if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename $@}.tex ; fi
66        ${BibTeX} ${Build}/${basename $@}
67        # Some citations reference others so run again to resolve these citations
68        ${LaTeX} ${basename $@}.tex
69        ${BibTeX} ${Build}/${basename $@}
70        # Run again to finish citations
71        ${LaTeX} ${basename $@}.tex
72
73## Define the default recipes.
74
75${Build} :
76        mkdir -p ${Build}
77
78${BASE}.out.ps : | ${Build}
79        ln -fs ${Build}/Paper.out.ps .
80
81WileyNJD-AMA.bst :
82        ln -fs ../AMA/AMA-stix/ama/WileyNJD-AMA.bst .
83
84${GRAPHS} : ${Build} timing.gp timing.dat
85        gnuplot -e Build="'${Build}/'" evaluation/timing.gp
86
87%.tex : %.fig | ${Build}
88        fig2dev -L eepic $< > ${Build}/$@
89
90%.ps : %.fig | ${Build}
91        fig2dev -L ps $< > ${Build}/$@
92
93%.pstex : %.fig | ${Build}
94        fig2dev -L pstex $< > ${Build}/$@
95        fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t
96
97# Local Variables: #
98# compile-command: "make" #
99# End: #
Note: See TracBrowser for help on using the repository browser.