summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile27
1 files changed, 26 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c70939f..0e68733 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,8 @@
+VIDEO_TITLE = https://posten.orø.dk/
+VIDEO_FILES = posten.mp4 posten.webm
+
+include _make/*.mk
+
all: preview
preview:
@@ -9,7 +14,27 @@ render:
publish:
rsync -avH --delete-after _site/ www-couch@xayide.jones.dk:public_websites/posten.oroe.dk/
+offset: $(wildcard tryk/oroeposten_*_offset.qmd)
+ quarto render $<
+ $(MAKE) $(patsubst %.qmd,_site/%_cmyk.pdf,$<)
+
lint-markdown:
@mdl --ignore-front-matter --style .mdl.rb */*.qmd */*/*.qmd
-.PHONY: all preview render publish lint-markdown
+lint-hyphenation:
+ @grep -Fxvh -f tryk/hyph_ok_danish.txt tryk/*.uhy
+
+$(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 offset lint-markdown lint-hyphenation