# $Cambridge: hermes/doc/talks/2004-05-techlinks/Makefile,v 1.1 2004/05/19 14:02:47 fanf2 Exp $ COPIES = hermes-new.pic cloud.pic enterprise.jpg PICSRC = hermes-new-old.pic hermes-new-ppsw.pic PICPS = ${PICSRC:.pic=.ps} PICEPS = ${PICSRC:.pic=.eps} PICPDF = ${PICSRC:.pic=.pdf} PIC = ${PICPS} ${PICEPS} ${PICPDF} talk: ${PICEPS} ${COPIES} talk.mgp mgp -t60 -F1,0,0 talk.mgp test: ${PICEPS} ${COPIES} talk.mgp mgp -t60 -F1,0,0 -g1024x768 talk.mgp notes.ps: talk.mgp a2ps -B talk.mgp > notes.ps view: ${PICPS} for file in ${PICPS}; do gv $$file & done index.html: ${PICPDF} ${PICEPS} talk.mgp mgp -D. -g1024x768 talk.mgp rm -f mgp*.old mgp00001.old: ../munghtml.pl index.html perl ../munghtml.pl all: notes.ps index.html mgp00001.old hermes-new-old.pic: hermes-new.pic sed '/^MENU:/s/box/box fill 0.3/;\ /^WEB:/s/box/box fill 0.2/' < $> > $@ hermes-new-ppsw.pic: hermes-new.pic sed '/^PPSW:/s/box/box fill 0.2/' < $> > $@ ${COPIES}: @for file in ${COPIES}; do \ rm -f $$file; \ for dir in `ls -rd ../2*`; do \ if [ -f $$dir/$$file ]; then \ echo cp $$dir/$$file .; \ cp $$dir/$$file .; \ break; \ fi; \ done; \ done clean: rm -f .gscache.* ${COPIES} rm -f mgp* index.html rm -f hermes-new-* rm -f *.ps *.pdf *.eps *.epsi # excessively complicated eps construction .SUFFIXES: .pic .ps .pdf .eps .epsi .pic.ps: groff -Tps -p $< > $@ .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