Ignore:
Timestamp:
Feb 1, 2018, 10:03:35 AM (5 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
295e5071
Parents:
281806b
Message:

further harmonize document Makefile and documents

Location:
doc/theses/aaron_moss/comp_II
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • doc/theses/aaron_moss/comp_II/.gitignore

    r281806b r23c27039  
    11# generated by latex
    2 *.aux
    3 *.bbl
    4 *.blg
    5 *.brf
    6 *.dvi
    7 *.idx
    8 *.ilg
    9 *.ind
    10 *.log
    11 *.out
     2build/*
    123*.pdf
    134*.ps
    14 *.toc
  • doc/theses/aaron_moss/comp_II/Makefile

    r281806b r23c27039  
    1 ## Define the appropriate configuration variables.
     1## Define the configuration variables.
    22
    3 TeXLIB = .:../LaTeXmacros:../LaTeXmacros/listings:../LaTeXmacros/enumitem:../bibliography/:
    4 LaTeX  = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error
     3Build = build
     4Figures = figures
     5Macros = ../../../LaTeXmacros
     6TeXLIB = .:${Macros}:${Build}:../../../bibliography:
     7LaTeX  = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error -output-directory=${Build}
    58BibTeX = BIBINPUTS=${TeXLIB} && export BIBINPUTS && bibtex
     9
     10MAKEFLAGS = --no-print-directory --silent #
     11VPATH = ${Build} ${Figures}
    612
    713## Define the text source files.
     
    2935# Directives #
    3036
     37.PHONY : all clean                                      # not file names
     38
    3139all : ${DOCUMENT}
    3240
    3341clean :
    34         rm -f *.bbl *.aux *.dvi *.idx *.ilg *.ind *.brf *.out *.log *.toc *.blg *.pstex_t *.cf \
    35                 ${FIGURES} ${PICTURES} ${PROGRAMS} ${GRAPHS} ${basename ${DOCUMENT}}.ps ${DOCUMENT}
     42        @rm -frv ${DOCUMENT} ${basename ${DOCUMENT}}.ps ${Build}
    3643
    3744# File Dependencies #
     
    4148
    4249${basename ${DOCUMENT}}.ps : ${basename ${DOCUMENT}}.dvi
    43         dvips $< -o $@
     50        dvips ${Build}/$< -o $@
    4451
    45 ${basename ${DOCUMENT}}.dvi : Makefile ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} ${basename ${DOCUMENT}}.tex \
    46                 ../LaTeXmacros/common.tex ../LaTeXmacros/indexstyle ../bibliography/cfa.bib
    47         # Conditionally create an empty *.ind (index) file for inclusion until makeindex is run.
    48         if [ ! -r ${basename $@}.ind ] ; then touch ${basename $@}.ind ; fi
     52${basename ${DOCUMENT}}.dvi : Makefile ${Build} ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} \
     53                ${Macros}/common.tex ${Macros}/indexstyle ../../../bibliography/pl.bib
    4954        # Must have *.aux file containing citations for bibtex
    5055        if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename $@}.tex ; fi
    51         -${BibTeX} ${basename $@}
    52         # Some citations reference others so run steps again to resolve these citations
     56        -${BibTeX} ${Build}/${basename $@}
     57        # Some citations reference others so run again to resolve these citations
    5358        ${LaTeX} ${basename $@}.tex
    54         -${BibTeX} ${basename $@}
    55         # Make index from *.aux entries and input index at end of document
    56         makeindex -s ../LaTeXmacros/indexstyle ${basename $@}.idx
     59        -${BibTeX} ${Build}/${basename $@}
     60        # Run again to finish citations
    5761        ${LaTeX} ${basename $@}.tex
    58         # Run again to get index title into table of contents
    59         ${LaTeX} ${basename $@}.tex
    60 
    61 predefined :
    62         sed -f predefined.sed ${basename ${DOCUMENT}}.tex > ${basename $@}.cf
    6362
    6463## Define the default recipes.
    6564
     65${Build}:
     66        mkdir -p ${Build}
     67
    6668%.tex : %.fig
    67         fig2dev -L eepic $< > $@
     69        fig2dev -L eepic $< > ${Build}/$@
    6870
    6971%.ps : %.fig
    70         fig2dev -L ps $< > $@
     72        fig2dev -L ps $< > ${Build}/$@
    7173
    7274%.pstex : %.fig
    73         fig2dev -L pstex $< > $@
    74         fig2dev -L pstex_t -p $@ $< > $@_t
     75        fig2dev -L pstex $< > ${Build}/$@
     76        fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t
    7577
    7678# Local Variables: #
  • doc/theses/aaron_moss/comp_II/comp_II.tex

    r281806b r23c27039  
    1 % inline code ©...© (copyright symbol) emacs: C-q M-)
    2 % red highlighting ®...® (registered trademark symbol) emacs: C-q M-.
    3 % blue highlighting ß...ß (sharp s symbol) emacs: C-q M-_
    4 % green highlighting ¢...¢ (cent symbol) emacs: C-q M-"
    5 % LaTex escape §...§ (section symbol) emacs: C-q M-'
    6 % keyword escape ¶...¶ (pilcrow symbol) emacs: C-q M-^
    7 % math escape $...$ (dollar symbol)
    8 
    91\documentclass[twoside,11pt]{article}
    102
     
    2719\usepackage{mathptmx}                                   % better math font with "times"
    2820\usepackage[usenames]{color}
    29 \usepackage[pagewise]{lineno}
    30 \renewcommand{\linenumberfont}{\scriptsize\sffamily}
    3121\input{common}                                          % bespoke macros used in the document
    3222\usepackage[dvips,plainpages=false,pdfpagelabels,pdfpagemode=UseNone,colorlinks=true,pagebackref=true,linkcolor=blue,citecolor=blue,urlcolor=blue,pagebackref=true,breaklinks=true]{hyperref}
     
    3424\renewcommand{\UrlFont}{\small\sf}
    3525
     26\usepackage[pagewise]{lineno}
     27\renewcommand{\linenumberfont}{\scriptsize\sffamily}
     28
     29% Default underscore is too low and wide. Cannot use lstlisting "literate" as replacing underscore
     30% removes it as a variable-name character so keywords in variables are highlighted. MUST APPEAR
     31% AFTER HYPERREF.
     32\renewcommand{\textunderscore}{\leavevmode\makebox[1.2ex][c]{\rule{1ex}{0.075ex}}}
     33
    3634\setlength{\topmargin}{-0.45in}                                                 % move running title into header
    3735\setlength{\headsep}{0.25in}
     36
     37\CFAStyle                                                                                               % use default CFA format-style
     38
     39% inline code ©...© (copyright symbol) emacs: C-q M-)
     40% red highlighting ®...® (registered trademark symbol) emacs: C-q M-.
     41% blue highlighting ß...ß (sharp s symbol) emacs: C-q M-_
     42% green highlighting ¢...¢ (cent symbol) emacs: C-q M-"
     43% LaTex escape §...§ (section symbol) emacs: C-q M-'
     44% keyword escape ¶...¶ (pilcrow symbol) emacs: C-q M-^
     45% math escape $...$ (dollar symbol)
    3846
    3947\usepackage{caption}
     
    622630\addcontentsline{toc}{section}{\refname}
    623631\bibliographystyle{plain}
    624 \bibliography{cfa}
     632\bibliography{pl}
    625633
    626634%\addcontentsline{toc}{section}{\indexname} % add index name to table of contents
Note: See TracChangeset for help on using the changeset viewer.