diff options
author | Karl Berry <karl@freefriends.org> | 2011-02-06 16:41:21 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-02-06 16:41:21 +0000 |
commit | 33b37b61d2318108ad8afe5c7175b91282bf870f (patch) | |
tree | d67d4975787e98a7afe447052ef76dc81903f7a1 /Master/texmf-dist/doc/latex/ryethesis/Makefile | |
parent | 300c48ee48cd89dab7bc133b81ba84eda8b6d605 (diff) |
ryethesis (6feb11)
git-svn-id: svn://tug.org/texlive/trunk@21316 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/ryethesis/Makefile')
-rw-r--r-- | Master/texmf-dist/doc/latex/ryethesis/Makefile | 60 |
1 files changed, 42 insertions, 18 deletions
diff --git a/Master/texmf-dist/doc/latex/ryethesis/Makefile b/Master/texmf-dist/doc/latex/ryethesis/Makefile index e92c0130ca6..f318721c73e 100644 --- a/Master/texmf-dist/doc/latex/ryethesis/Makefile +++ b/Master/texmf-dist/doc/latex/ryethesis/Makefile @@ -1,7 +1,8 @@ -FILEROOT= +FILEROOT=ryesample + SHELL=/bin/sh -VERSION=1.2 +VERSION=1.31 LATEX=pdflatex @@ -9,40 +10,63 @@ TEXFILES=ryesample.tex BIBFILES=ryesample.bib FIGS=figure1.pdf FILES=README ryethesis.ins ryethesis.dtx ryethesis.pdf ryesample.pdf Makefile +EXTRACLEAN=*.aux *.lof *.lot *.loa *.log *.bbl *.blg *.ind *.ilg *.toc *.idx *.gls *.glo *.out *~ *.nls *.nlo *.ist *.toa *.glg *.acn *.acr *.alg *.fdb_latexmk *.synctex.gz *.dvi auto -TEXMFFLAGS=-file-line-error -halt-on-error -interaction=batchmode +TEXMFFLAGS=-file-line-error -halt-on-error #-interaction=batchmode TARGETS=ryethesis.cls ryethesis.pdf ryesample.pdf ryethesis-$(VERSION).zip + all: $(TARGETS) -.PHONY: again.and.again +.PHONY: again.and.again once bibtex glossary index nomenclature + +once: + @$(LATEX) $(TEXMFFLAGS) $(FILEROOT) || (rm -f $(FILEROOT).pdf; exit 2); + +bibtex: + @bibtex -terse $(FILEROOT) + +glossary: + @if [ -f $(FILEROOT).ist ]; then makeglossaries -q $(FILEROOT) ; fi + +index: + @if [ -f $(FILEROOT).idx ]; then makeindex -q $(FILEROOT) ; fi + +nomenclature: + @if [ -f $(FILEROOT).nlo ]; then makeindex -q $(FILEROOT).nlo -s nomencl.ist -o $(FILEROOT).nls; fi again.and.again: @if [ $(MAKELEVEL) = 4 ]; then \ echo "Too many nesting levels of make!"; exit 1; \ fi - @$(LATEX) $(TEXMFFLAGS) $(FILEROOT) || ( rm -f $(FILEROOT).pdf && exit 2) - @bibtex -terse $(FILEROOT) - @if [ -f $(FILEROOT).ist ]; then makeglossaries -q $(FILEROOT) ; fi - @if [ -f $(FILEROOT).idx ]; then makeindex -q $(FILEROOT) ; fi - @if [ -f $(FILEROOT).glo ]; then makeindex -q $(FILEROOT).nlo -s nomencl.ist -o $(FILEROOT).nls; fi - @$(LATEX) $(TEXMFFLAGS) $(FILEROOT) || ( rm -f $(FILEROOT).pdf && exit 2) + $(MAKE) once @if `grep -q -e "There were undefined references" -e "There were multiply-defined labels" -e "Label(s) may have changed. Rerun to get cross-references right" $(FILEROOT).log`; \ - then $(MAKE) FILEROOT=$(FILEROOT) again.and.again; \ + then $(MAKE) again.and.again; \ fi clean: - @rm -rf $(TARGETS) *.aux *.lof *.lot *.loa *.log *.bbl *.blg *.ind *.ilg *.toc *.idx *.gls *.glo *.out *~ *.nls *.nlo *.ist *.toa *.glg auto + @rm -rf $(EXTRACLEAN) + +clean-all: + @make clean; + @rm -rf $(TARGETS) -ryesample.pdf: Makefile ${TEXFILES} ${BIBFILES} ${FIGS} - $(MAKE) FILEROOT=ryesample again.and.again +$(FILEROOT).pdf: Makefile ryethesis.cls ${TEXFILES} ${BIBFILES} ${FIGS} + @$(MAKE) once + @$(MAKE) bibtex + @$(MAKE) glossary + @$(MAKE) index + @$(MAKE) nomenclature + @$(MAKE) again.and.again ryethesis.pdf: Makefile ryethesis.dtx - $(LATEX) $(TEXMFFLAGS) ryethesis.dtx - $(LATEX) $(TEXMFFLAGS) ryethesis.dtx + echo "Making "$@ + @$(LATEX) $(TEXMFFLAGS) ryethesis.dtx || ( cat ryethesis.log; exit 1 ) + @$(LATEX) $(TEXMFFLAGS) ryethesis.dtx || ( cat ryethesis.log; exit 2 ) -ryethesis.cls: Makefile ryethesis.ins - $(LATEX) $(TEXMFFLAGS) ryethesis.ins +ryethesis.cls: Makefile ryethesis.ins ryethesis.dtx + echo "Making "$@ + @$(LATEX) $(TEXMFFLAGS) ryethesis.ins || ( cat ryethesis.log; exit 1 ) ryethesis-$(VERSION).zip: ${FILES} ${TEXFILES} ${BIBFILES} ${FIGS} zip $@ $^ |