source: doc/refrat/Makefile @ 2a77817

ADTast-experimentalenumpthread-emulationqualifiedEnum
Last change on this file since 2a77817 was 484ee53, checked in by Peter A. Buhr <pabuhr@…>, 6 years ago

update Makefiles so ${Build} is order only

  • Property mode set to 100644
File size: 2.3 KB
RevLine 
[5ff188f]1## Define the configuration variables.
[f60d997]2
[5ff188f]3Build = build
4Figures = figures
5Macros = ../LaTeXmacros
6TeXLIB = .:${Macros}:${Build}:../bibliography:
7LaTeX  = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error -output-directory=${Build}
[e55ca05]8BibTeX = BIBINPUTS=${TeXLIB} && export BIBINPUTS && bibtex
[f60d997]9
[5ff188f]10MAKEFLAGS = --no-print-directory --silent #
[23c27039]11VPATH = ${Build} ${Figures}
[5ff188f]12
[f60d997]13## Define the text source files.
14
[a188b16]15SOURCES = ${addsuffix .tex, \
[f60d997]16refrat \
[83e680d]17keywords \
[92c0f81]18operidents \
[f60d997]19}
20
21FIGURES = ${addsuffix .tex, \
22}
23
24PICTURES = ${addsuffix .pstex, \
25}
26
27PROGRAMS = ${addsuffix .tex, \
28}
29
30GRAPHS = ${addsuffix .tex, \
31}
32
33## Define the documents that need to be made.
34
35DOCUMENT = refrat.pdf
[fb16d5c]36BASE = ${basename ${DOCUMENT}}
[f60d997]37
38# Directives #
39
[5ff188f]40.PHONY : all clean                                      # not file names
41
[f60d997]42all : ${DOCUMENT}
43
44clean :
[fb16d5c]45        @rm -frv ${DOCUMENT} ${BASE}.ps ${Build}
[f60d997]46
47# File Dependencies #
48
[fb16d5c]49${DOCUMENT} : ${BASE}.ps
[f60d997]50        ps2pdf $<
51
[fb16d5c]52${BASE}.ps : ${BASE}.dvi
[5ff188f]53        dvips ${Build}/$< -o $@
[f60d997]54
[484ee53]55${BASE}.dvi : Makefile ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} \
56                ${Macros}/common.tex ${Macros}/lstlang.sty ${Macros}/indexstyle ../bibliography/pl.bib | ${Build}
[ce6c57c]57        # Conditionally create an empty *.ind (index) file for inclusion until makeindex is run.
[5ff188f]58        if [ ! -r ${basename $@}.ind ] ; then touch ${Build}/${basename $@}.ind ; fi
[ce6c57c]59        # Must have *.aux file containing citations for bibtex
[f60d997]60        if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename $@}.tex ; fi
[5ff188f]61        -${BibTeX} ${Build}/${basename $@}
62        # Some citations reference others so run again to resolve these citations
[f60d997]63        ${LaTeX} ${basename $@}.tex
[5ff188f]64        -${BibTeX} ${Build}/${basename $@}
[ce6c57c]65        # Make index from *.aux entries and input index at end of document
[5ff188f]66        makeindex -s ${Macros}/indexstyle ${Build}/${basename $@}.idx
67        # Run again to finish citations
[ce6c57c]68        ${LaTeX} ${basename $@}.tex
69        # Run again to get index title into table of contents
70        ${LaTeX} ${basename $@}.tex
[f60d997]71
[20e409e]72predefined :
[fb16d5c]73        sed -f predefined.sed ${BASE}.tex > ${basename $@}.cf
[20e409e]74
[f60d997]75## Define the default recipes.
76
[5ff188f]77${Build}:
78        mkdir -p ${Build}
79
[484ee53]80%.tex : %.fig | ${Build}
[5ff188f]81        fig2dev -L eepic $< > ${Build}/$@
[f60d997]82
[484ee53]83%.ps : %.fig | ${Build}
[5ff188f]84        fig2dev -L ps $< > ${Build}/$@
[f60d997]85
[484ee53]86%.pstex : %.fig | ${Build}
[5ff188f]87        fig2dev -L pstex $< > ${Build}/$@
88        fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t
[83e9bd3]89
[f60d997]90# Local Variables: #
91# compile-command: "make" #
92# End: #
Note: See TracBrowser for help on using the repository browser.