Ignore:
Timestamp:
Apr 3, 2022, 8:29:57 AM (2 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, ast-experimental, enum, master, pthread-emulation, qualifiedEnum
Children:
1a9592a
Parents:
85f9c77
Message:

harmonize latex macros and Makefiles, small wording correction

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/theses/mubeen_zulfiqar_MMath/Makefile

    r85f9c77 r37e9c1d  
    1 # directory for latex clutter files
     1# Configuration variables
     2
    23Build = build
    34Figures = figures
    45Pictures = pictures
     6
    57TeXSRC = ${wildcard *.tex}
    68FigSRC = ${notdir ${wildcard ${Figures}/*.fig}}
    79PicSRC = ${notdir ${wildcard ${Pictures}/*.fig}}
    8 BIBSRC = ${wildcard *.bib}
    9 TeXLIB = .:../../LaTeXmacros:${Build}: # common latex macros
    10 BibLIB = .:../../bibliography # common citation repository
     10BibSRC = ${wildcard *.bib}
     11
     12TeXLIB = .:../../LaTeXmacros:${Build}:          # common latex macros
     13BibLIB = .:../../bibliography                   # common citation repository
    1114
    1215MAKEFLAGS = --no-print-directory # --silent
    1316VPATH = ${Build} ${Figures} ${Pictures} # extra search path for file names used in document
    1417
    15 ### Special Rules:
     18DOCUMENT = uw-ethesis.pdf
     19BASE = ${basename ${DOCUMENT}}                  # remove suffix
    1620
    17 .PHONY: all clean
    18 .PRECIOUS: %.dvi %.ps # do not delete intermediate files
    19 
    20 ### Commands:
     21# Commands
    2122
    2223LaTeX = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error -output-directory=${Build}
    23 BibTeX = BIBINPUTS=${BibLIB} bibtex
     24BibTeX = BIBINPUTS=${BibLIB} && export BIBINPUTS && bibtex
    2425#Glossary = INDEXSTYLE=${Build} makeglossaries-lite
    2526
    26 ### Rules and Recipes:
     27# Rules and Recipes
    2728
    28 DOC = uw-ethesis.pdf
    29 BASE = ${DOC:%.pdf=%} # remove suffix
     29.PHONY : all clean                              # not file names
     30.PRECIOUS: %.dvi %.ps # do not delete intermediate files
     31.ONESHELL :
    3032
    31 all: ${DOC}
     33all : ${DOCUMENT}
    3234
    33 clean:
    34         @rm -frv ${DOC} ${Build}
     35clean :
     36        @rm -frv ${DOCUMENT} ${Build}
    3537
    36 # File Dependencies #
     38# File Dependencies
    3739
    38 %.dvi : ${TeXSRC} ${FigSRC:%.fig=%.tex} ${PicSRC:%.fig=%.pstex} ${BIBSRC} Makefile | ${Build}
     40%.dvi : ${TeXSRC} ${FigSRC:%.fig=%.tex} ${PicSRC:%.fig=%.pstex} ${BibSRC} Makefile | ${Build}
    3941        ${LaTeX} ${BASE}
    4042        ${BibTeX} ${Build}/${BASE}
    4143        ${LaTeX} ${BASE}
    42         # if nedded, run latex again to get citations
     44        # if needed, run latex again to get citations
    4345        if fgrep -s "LaTeX Warning: Citation" ${basename $@}.log ; then ${LaTeX} ${BASE} ; fi
    4446#       ${Glossary} ${Build}/${BASE}
     
    4648
    4749${Build}:
    48         mkdir $@
     50        mkdir -p $@
    4951
    5052%.pdf : ${Build}/%.ps | ${Build}
Note: See TracChangeset for help on using the changeset viewer.