# default is to just make a pdf (invoke twice to get references # right)... if using a bibtex file, add an extra pdflatex and bibtex # before the two pdflatex commands. all: pdflatex draft pdflatex draft # make an alright-looking HTML file (note the sed command is used to # insert a space after footnotes (silly latex2html)). html: cp draft.tex yourlastname_html.tex pdflatex yourlastname_html latex2html -split 0 -show_section_numbers -local_icons -no_navigation yourlastname_html sed 's/<\/SUP><\/A>/<\/SUP><\/A> /g' < yourlastname_html/index.html > yourlastname_html/index2.html mv yourlastname_html/index2.html yourlastname_html/index.html rm yourlastname_html.* # when done, do "make" and copy pdf to a new file. final: make all mv draft.pdf yourlastname.pdf # makes a date directory, copies relevant files there, tars and zips # the directory and then removes the directory. archive: mkdir `date "+%F"` cp *.tex *.pdf *.txt Makefile ./`date "+%F"` tar cvf ./`date "+%F"`.tar ./`date "+%F"` bzip2 ./`date "+%F"`.tar rm -rf ./`date "+%F"` # cleans up intermediate files clean: rm *.log *.aux *.out *.dvi