Ignore:
Timestamp:
Jan 7, 2021, 3:27:00 PM (5 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum, stuck-waitfor-destruct
Children:
2b4daf2, 64aeca0
Parents:
3c64c668 (diff), eef8dfb (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' into park_unpark

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/theses/thierry_delisle_PhD/comp_II/Makefile

    r3c64c668 r58fe85a  
    22
    33Build = build
    4 Figures = figures
     4Figures = img
    55Macros = ../../../LaTeXmacros
    66TeXLIB = .:${Macros}:${Build}:../../../bibliography:
     
    1212
    1313## Define the text source files.
    14 
    15 SOURCES = ${addsuffix .tex, \
    16 comp_II \
    17 }
    18 
    1914FIGURES = ${addsuffix .tex, \
     15        emptybit \
     16        emptytree \
     17        emptytls \
     18        resize \
    2019}
    2120
    2221PICTURES = ${addsuffix .pstex, \
     22        base \
     23        empty \
     24        system \
    2325}
    2426
     
    3032
    3133## Define the documents that need to be made.
     34all: comp_II.pdf presentation.pdf
     35comp_II.pdf: ${FIGURES} ${PICTURES}
     36presentation.pdf: presentationstyle.sty base.dark.pstex empty.dark.pstex system.dark.pstex
    3237
    33 DOCUMENT = comp_II.pdf
     38DOCUMENT = comp_II.pdf presentation.pdf
    3439BASE = ${basename ${DOCUMENT}}
    3540
     
    4550# File Dependencies #
    4651
    47 ${DOCUMENT} : ${BASE}.ps
     52%.pdf : build/%.ps | ${Build}
    4853        ps2pdf $<
    4954
    50 ${BASE}.ps : ${BASE}.dvi
    51         dvips ${Build}/$< -o $@
     55build/%.ps : build/%.dvi | ${Build}
     56        dvips $< -o $@
    5257
    53 ${BASE}.dvi : Makefile ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} \
    54                 ${Macros}/common.tex ${Macros}/indexstyle ../../../bibliography/pl.bib \
    55                 local.bib glossary.tex | ${Build}
     58build/%.dvi : %.tex Makefile | ${Build}
    5659        # Must have *.aux file containing citations for bibtex
    57         if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename $@}.tex ; fi
    58         -${BibTeX} ${Build}/${basename $@}
     60        if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} $< ; fi
     61        -${BibTeX} ${basename $@}
    5962        # Some citations reference others so run again to resolve these citations
    60         ${LaTeX} ${basename $@}.tex
    61         -${BibTeX} ${Build}/${basename $@}
     63        ${LaTeX} $<
     64        -${BibTeX} ${basename $@}
    6265        # Make index from *.aux entries and input index at end of document
    63         makeglossaries -q -s ${Build}/${basename $@}.ist ${Build}/${basename $@}
     66        -makeglossaries -q -s ${basename $@}.ist ${basename $@}
    6467        # Run again to finish citations
    65         ${LaTeX} ${basename $@}.tex
     68        ${LaTeX} $<
    6669
    6770## Define the default recipes.
     
    7073        mkdir -p ${Build}
    7174
    72 %.tex : %.fig ${Build}
     75%.tex : img/%.fig | ${Build}
    7376        fig2dev -L eepic $< > ${Build}/$@
    7477
    75 %.ps : %.fig | ${Build}
     78%.ps : img/%.fig | ${Build}
    7679        fig2dev -L ps $< > ${Build}/$@
    7780
    78 %.pstex : %.fig | ${Build}
     81%.pstex : img/%.fig | ${Build}
    7982        fig2dev -L pstex $< > ${Build}/$@
     83        fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t
     84
     85## pstex with inverted colors
     86%.dark.pstex : img/%.fig Makefile | ${Build}
     87        fig2dev -L pstex $< > ${Build}/$@
     88        sed -i 's/\/col-1 {0 setgray} bind def/\/col-1 {1 setgray} bind def/g' ${Build}/$@
     89        sed -i 's/\/col0 {0.000 0.000 0.000 srgb} bind def/\/col0 {1.000 1.000 1.000 srgb} bind def/g' ${Build}/$@
     90        sed -i 's/\/col7 {1.000 1.000 1.000 srgb} bind def/\/col7 {0.000 0.000 0.000 srgb} bind def/g' ${Build}/$@
    8091        fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t
    8192
Note: See TracChangeset for help on using the changeset viewer.