# rename this file to Makefile in the "project" directory MAINFILE = main # [1] FIGS_TO_MAKE = lost.eps first.ps # [2] PSFILES = title.ps # [3] # [1] put the main latex file here. (minus the .tex extension) # [2] converts lost.fig to lost.eps for you ( and first.fig ...) # [3] any ps files you might include directly. #Everything below can remain the same - customise above. .SUFFIXES: .fig .tex .dvi .ps .xwd .bib .bbl .eps .dj .dvi.ps: dvips $*.dvi > $*.ps .fig.eps: fig2dev -L ps $*.fig > $*.eps .fig.ps: fig2dev -L ps $*.fig > $*.ps .fig.tex: fig2dev -L eepic $*.fig > $*.tex .bib.bbl: if [ -r $*.aux ] ; then . ; else latex $*.tex ; fi bibtex $* .xwd.ps: xpr -device ps -porttrait -psfig -compact $*.xwd > $*.ps .ps.dj: gs -q -r300 -sDEVICE=ljet4 -sOutputFile=$*.dj -sPAPERSIZE=a4 -dNOPAUSE $*.ps -c quit all: $(MAINFILE).ps preview: $(MAINFILE).dvi xdvi $(MAINFILE).dvi pspreview: $(MAINFILE).ps ghostview $(MAINFILE).ps dvi: $(MAINFILE).dvi ps: $(MAINFILE).ps dj: $(MAINFILE).dj $(MAINFILE).dvi: $(MAINFILE).tex $(FIGS_TO_MAKE) $(PSFILES) latex $(MAINFILE) clean: /bin/rm -f $(MAINFILE).ps $(FIGS_TO_MAKE) /bin/rm -f *.aux *.dvi *.bbl *.blg *.log *.dj *.bak