#======================================================================= # Makefile for ``Thesis'' # [06-Jul-1993] #======================================================================= BIBTEX = bibtex CP = /bin/cp DETEX = detex -n FIGURES = fig1.tex fig2.tex fig3.tex LATEX = latex MAKEINDEX = makeindex MV = /bin/mv TEXFILES = abstract.tex appendix.tex acknowledge.tex \ chap1.tex chap2.tex chap3.tex \ thesis.tex RM = /bin/rm -f SED = /bin/sed SHELL = /bin/sh thesis: thesis.dvi spell dw thesis.aux: -if [ ! -f thesis.aux ] ; then touch thesis.aux ; fi thesis.dvi: thesis.bbl thesis.tex thesis.sty $(FIGURES) $(TEXFILES) $(LATEX) thesis.tex $(BIBTEX) thesis $(MAKE) thesis.toc $(LATEX) thesis.tex $(MAKE) thesis.toc $(LATEX) thesis.tex $(MAKE) thesis.toc thesis.bbl: thesis.bib thesis.aux -if [ ! -f thesis.aux ] ; then touch thesis.aux ; fi -$(BIBTEX) thesis # This will strip the sections from appearing in the table of contents. thesis.toc: FRC $(CP) thesis.toc thesis.toc.old $(SED) '/[AB]\.[12]/d' thesis.toc # dummy target for force make to make a rule FRC: spell: $(TEXFILES) -if [ ! -f thesis.spell-okay ] ; then touch thesis.spell-okay ; fi @echo '==================== spelling exceptions ====================' for f in $(TEXFILES) ;\ do \ echo ===== $$f ===== ; \ $(DETEX) $$f | spell +thesis.spell-okay > $$f.spell; \ if [ -s $$f.spell ] ; \ then cat $$f.spell ; \ else $(RM) $$f.spell ; \ fi ; \ done dw: -$(RM) thesis.dw @echo '==================== doubled words ====================' for f in $(TEXFILES) ;\ do \ echo ===== $$f ===== ; \ echo ===== $$f ===== >> thesis.dw ; \ $(DETEX) $$f | dw >> thesis.dw ; \ done clean: -$(RM) *.blg -$(RM) *.dvi* -$(RM) *.dw -$(RM) *.ilg -$(RM) *.log -$(RM) *.o -$(RM) *.spell -$(RM) *.tmp -$(RM) *.old -$(RM) *~ -$(RM) \#* -$(RM) core clobber: clean -$(RM) *.aux -$(RM) *.bbl -$(RM) *.idx -$(RM) *.ind -$(RM) *.toc -$(RM) *.lof -$(RM) *.lot