# -- require automake 1.6 AUTOMAKE_OPTIONS = 1.6 # -- document sources TEXFILES = \ characters.tex \ locations.tex \ main-plot.tex \ plot-0.4.tex \ side-quest.tex # -- image files IMAGES = \ help_dwarves.pdf \ help_men_of_knife.pdf \ help_monks.pdf \ locate_alek.pdf \ map.pdf \ plot.pdf # -- what should be distributed EXTRA_DIST = ${TEXFILES} \ help_dwarves.dot \ help_men_of_knife.dot \ help_monks.dot \ locate_alek.dot \ map.fig \ map.png \ plot.dot # -- installation target docdir = ${prefix}/doc/adonthell doc_DATA = plot-0.4.pdf # -- build the PDF file plot-0.4.pdf: ${IMAGES} ${TEXFILES} @if test ! -e plot-0.4.toc ; then \ ${PDFLATEX} plot-0.4.tex; \ fi ${PDFLATEX} plot-0.4.tex @if test `grep -c "Label(s) may have changed." plot-0.4.log` -gt 0 ; then \ ${PDFLATEX} plot-0.4.tex; \ fi # -- misc rules %.pdf: %.eps ${EPS2PDF} $< %.eps: %.ps ${PS2EPS} -f $< %.eps: %.fig ${FIG2DEV} -Leps $< $@ %.ps: %.dot ${DOT} -Tps2 -o $@ $< # -- actual target CLEANFILES = plot-0.4.pdf # -- temporary stuff MOSTLYCLEANFILES = $(IMAGES) *.ps *.eps *.aux *.log *.out *.toc