# $Cambridge: hermes/doc/talks/2004-02-ukuug/Makefile,v 1.19 2004/03/05 18:04:42 fanf2 Exp $ COPIES = hermes-old.jpg hermes-new.jpg hermes-new2.jpg \ hermes-web.pic hermes+web.pic \ pop.jpg imac.jpg storage.jpg robin.jpg \ ferrari.jpg old-possum.jpg wildebeest.jpg MSSRC = paper.ms errata.ms TBLSRC = mailboxes.tbl stats.tbl stats-talk.tbl PICSRC = hermes-old-sw.pic hermes-old-hw.pic \ hermes-new.pic hermes-new-fluffy.pic \ hermes-web.pic hermes+web.pic MSPS = ${MSSRC:.ms=.ps} MSHTML = ${MSSRC:.ms=.html} PICPS = ${PICSRC:.pic=.ps} TBLPS = ${TBLSRC:.tbl=.ps} PS = ${MSPS} ${PICPS} ${TBLPS} EPS = ${PS:.ps=.eps} PDF = ${PS:.ps=.pdf} all: ${PS} ${PDF} ${MSHTML} ${COPIES} talk.ps slides.html mgp00001.old talk: ${EPS} ${COPIES} talk.mgp mgp -t30 -F1,0,0 -g1024x768 talk.mgp talk.ps: talk.mgp a2ps -1 talk.mgp > talk.ps slides.html: ${EPS} ${COPIES} talk.mgp mkdir slides mgp -Dslides -g1024x768 talk.mgp mv slides/index.html slides.html mv slides/* . rmdir slides rm -f mgp*.old mgp00001.old: munghtml.pl slides.html perl munghtml.pl munghtml.pl: ../munghtml.pl cp ../munghtml.pl . ${COPIES}: for file in ${COPIES}; do \ rm -f $$file; \ cp ../*/$$file .; \ done clean: rm -rf slides slides.html paper.html ${COPIES} rm -f .gscache.* mgp* grohtml* munghtml.pl rm -f *.ps *.pdf *.eps *.epsi # dependencies paper.ps paper.html: paper.ms bibliography ${TBLSRC} ${PICSRC} errata.ps errata.html: errata.ms # excessively complicated eps construction .SUFFIXES: .pic .tbl .ms .ps .pdf .eps .epsi .html .ms.ps: groff -Tps -dpaper=a4 -P-pa4 -ms -sptR $< > $@ .ms.html: groff -Thtml -ms -sptR $< > $@ sed 's|||g' < $@ > $@.big mv $@.big $@ .pic.ps: groff -Tps -p $< > $@ .tbl.ps: groff -Tps -t $< > $@ .ps.pdf: ps2pdf $< $@ .ps.epsi: ps2epsi $< $@ # this hack isn't strictly necessary, but makes smaller .eps files .epsi.eps: sed -e '/^% /d;/^%%[A-Z][a-z]*Preview/d' $< > $@ # EOF