# # Makefile for automating LaTeX related tasks and administrating a # directory of numerous thesis-related files. # # Prepared by Neil C. Miller # Modifed by Lord Simon Cuce III # May, 1997 # # Revision 2.0 5/12/97 # FILENAME = thesis ARCHIVE = backup .DEFAULT: @echo Sorry, that's an undefined target. help: @echo @echo Help for make utility: @echo @echo make - shows this help. @echo make dvi - executes latex one time. @echo make clean - removes all backup and output files. @echo make ps - executes dvips one time. @echo make bib - executes bibtex one time. @echo make all - runs latex several times, bibtex and dvips. @echo make backup - creates a .tar.gz backup of all files. @echo @echo Filenames for the main document and backup archive are @echo specified in the Makefile. @echo dvi: @latex $(FILENAME) clean: @$(RM) *% *.bak *.dvi $(FILENAME).ps realclean: @$(RM) *% *.bak *.dvi $(FILENAME).ps *.aux *.bbl *.blg *.ilg *.ind *.lof *.log *.lot *.lof *.toc ps: @dvips -o $(FILENAME).ps $(FILENAME) bib: @bibtex $(FILENAME) all: @latex $(FILENAME) @bibtex $(FILENAME) @latex $(FILENAME) @latex $(FILENAME) @dvips -o $(FILENAME).ps $(FILENAME) backup: @$(RM) $(ARCHIVE).tar.gz @tar cf $(ARCHIVE).tar * @gzip $(ARCHIVE).tar @ls -l $(ARCHIVE).tar.gz