summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 57e3cf6..f215ec4 100644
--- a/Makefile
+++ b/Makefile
@@ -17,4 +17,17 @@ publish:
lint-markdown:
@mdl --ignore-front-matter --style .mdl.rb */*.qmd */*/*.qmd
+$(patsubst %_offset.pdf,%_offset_cmyk.pdf,$(wildcard _site/tryk/*_offset.pdf)):\
+ %_offset_cmyk.pdf: %_offset.pdf
+ gs -dSAFER -dBATCH -dNOPAUSE \
+ -sDEVICE=pdfwrite \
+ -dPDFSETTINGS=/prepress \
+ -sOutputFile=$@ \
+ -dProcessColorModel=/DeviceCMYK \
+ -sColorConversionStrategy=CMYK \
+ -sColorConversionStrategyForImages=CMYK \
+ -sDefaultRGBProfile=/usr/share/color/icc/sRGB2014.icc \
+ -sDefaultCMYKProfile=/usr/share/color/icc/PSO_Uncoated_ISO12647_eci.icc \
+ $<
+
.PHONY: all preview render publish lint-markdown