diff options
author | Karl Berry <karl@freefriends.org> | 2010-06-18 00:06:30 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-06-18 00:06:30 +0000 |
commit | 1cd867ef11ec5a4a1a5e94fefa0d17de9b630e65 (patch) | |
tree | 4e172150908a03d500ff09770a022cbd142a10df /Master/texmf-dist/doc/latex/ryethesis/Makefile | |
parent | 1ce3ee2ff28a4ec21ca5ac6e1bafaa73930f5265 (diff) |
ryethesis 1.1 (17jun10)
git-svn-id: svn://tug.org/texlive/trunk@19022 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 | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/ryethesis/Makefile b/Master/texmf-dist/doc/latex/ryethesis/Makefile new file mode 100644 index 00000000000..2f7255912d3 --- /dev/null +++ b/Master/texmf-dist/doc/latex/ryethesis/Makefile @@ -0,0 +1,49 @@ +FILEROOT= +SHELL=/bin/sh + +VERSION=1.1 + +LATEX=pdflatex + +TEXFILES=ryesample.tex +BIBFILES=ryesample.bib +FIGS=figure1.pdf +FILES=README ryethesis.ins ryethesis.dtx ryethesis.pdf ryesample.pdf Makefile + +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 + +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) + @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; \ + 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 + +ryesample.pdf: Makefile ${TEXFILES} ${BIBFILES} ${FIGS} + $(MAKE) FILEROOT=ryesample again.and.again + +ryethesis.pdf: Makefile ryethesis.dtx + $(LATEX) $(TEXMFFLAGS) ryethesis.dtx + $(LATEX) $(TEXMFFLAGS) ryethesis.dtx + +ryethesis.cls: Makefile ryethesis.ins + $(LATEX) $(TEXMFFLAGS) ryethesis.ins + +ryethesis-$(VERSION).zip: ${FILES} ${TEXFILES} ${BIBFILES} ${FIGS} + zip $@ $^ + |