diff --git a/make-includes/build_content_rules.make b/make-includes/build_content_rules.make index e4991ff..d8b302e 100755 --- a/make-includes/build_content_rules.make +++ b/make-includes/build_content_rules.make @@ -68,6 +68,7 @@ vpath %.ps graphics images vpath %-print.png $(BUILD_DIR) vpath %.png graphics images +vpath %.pdf graphics images ################################################################################ @@ -99,7 +100,8 @@ ################################################################################ # -# Build correctly cropped EPS (for printing) from source EPS or PS. +# Build correctly cropped PDF (for printing) from source EPS or PS. See below +# for handling PDF sources. # # Notes on ps2eps options: # @@ -145,7 +147,7 @@ ################################################################################ # -# Build correctly cropped PNGs for web display from the source EPS or PS. +# Build correctly cropped PNGs for web display from source EPS, PS or PDF. # # It might seem to make more sense to generate the PNGs from the print # EPS, which has already been appropriately cropped (see above). However, @@ -172,6 +174,12 @@ gs -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=png16m -dEPSCrop -r96 \ -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -sOutputFile=$@ - @mv $@ $(BUILD_DIR) + +%-web.png: %.pdf + @announce "Generating $@ (web)" + gs -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=png16m -r96 \ + -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -sOutputFile=$@ $< + @mv $@ $(BUILD_DIR) # # Build 144 DPI version for zoomed web display # @@ -189,6 +197,12 @@ -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -sOutputFile=$@ - @mv $@ $(BUILD_DIR) +%-web-zoom.png: %.pdf + @announce "Generating $@ (zoomed web)" + gs -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=png16m -r144 \ + -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -sOutputFile=$@ $< + @mv $@ $(BUILD_DIR) + # # Are 600 DPI versions even needed?? They don't seem to be used anywhere... # @@ -217,6 +231,16 @@ @cp $< $(BUILD_DIR)/$@ +################################################################################ +# +# There may be a few graphics that already come in PDF form (e.g., generated +# from Visio originals). We don't need to generate anything; rather +# we just copy the original file to the build directory. +# +%-print.pdf: %.pdf + @announce "Generating $@ (print)" + @cp $< $(BUILD_DIR)/$@ + ################################################################################ #