diff --git a/make-includes/build_lecture_rules.make b/make-includes/build_lecture_rules.make index b06150e..2e72e58 100755 --- a/make-includes/build_lecture_rules.make +++ b/make-includes/build_lecture_rules.make @@ -14,7 +14,7 @@ # # Add standard file suffixes. # -.SUFFIXES: .pdf .tex .dvi .graffle .png .tif .plo .jpg .pict +.SUFFIXES: .pdf .tex .dvi .graffle .png .tif .plo .jpg .pict .eps .ps ################################################################################ @@ -34,6 +34,8 @@ vpath %.tif $(IMGDIR) vpath %.jpg $(IMGDIR) vpath %.plo $(IMGDIR) +vpath %.ps $(IMGDIR) +vpath %.eps $(IMGDIR) ################################################################################ @@ -310,3 +312,14 @@ # %.pdf: %.plo ploticus -eps -tightcrop -o stdout $< | shiftbbox | epstopdf --filter --outfile=$(IMGDIR)/$@ +# +# PDF from PS +# +%.pdf: %.ps + ps2eps --ignoreBB --nohires --loose < $< | ps2pdf -dEPSCrop - $(IMGDIR)/$@ +# +# PDF from EPS +# +%.pdf: %.eps + ps2eps --ignoreBB --nohires --loose < $< | ps2pdf -dEPSCrop - $(IMGDIR)/$@ +