aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2017-06-27 19:00:46 +0200
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2017-06-27 19:00:46 +0200
commit5aa63bb167e13148754d4901ba23c6dec09832a2 (patch)
treea0061d7331be62c6bca5a43a2d6c37d89d7184de
parent612a91ac3e0404e2954f9d5e5893225b8f171e4a (diff)
Makefile: also build n-up pages
-rw-r--r--Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3689b4b..3d179e1 100644
--- a/Makefile
+++ b/Makefile
@@ -3,11 +3,14 @@ BUILDDIR = build
PS_TARGETS = $(patsubst designs/%.yaml,$(BUILDDIR)/%.ps,$(wildcard designs/*.yaml))
PDF_TARGETS = $(patsubst designs/%.yaml,$(BUILDDIR)/%.pdf,$(wildcard designs/*.yaml))
+NUP4_TARGETS = $(patsubst designs/%.yaml,$(BUILDDIR)/%-nup4.pdf,$(wildcard designs/*-a6.yaml))
+NUP2_TARGETS = $(patsubst designs/%.yaml,$(BUILDDIR)/%-nup2.pdf,$(wildcard designs/*-a5.yaml))
.PHONY: all ps pdf clean
-all: pdf
+all: pdf nup
ps: $(PS_TARGETS)
pdf: $(PDF_TARGETS)
+nup: $(NUP4_TARGETS) $(NUP2_TARGETS)
$(BUILDDIR)/%.ps: designs/%.yaml
mkdir -p ${BUILDDIR}
@@ -22,6 +25,12 @@ $(BUILDDIR)/%-a5.pdf: ${BUILDDIR}/%-a5.ps
$(BUILDDIR)/%-a6.pdf: ${BUILDDIR}/%-a6.ps
ps2pdf -sPAPERSIZE=a6 $< $@
+$(BUILDDIR)/%-a5-nup2.pdf: $(BUILDDIR)/%-a5.pdf
+ pdfnup --nup 2x1 --landscape -o $@ $< '1,1'
+
+$(BUILDDIR)/%-a6-nup4.pdf: $(BUILDDIR)/%-a6.pdf
+ pdfnup --nup 2x2 --no-landscape -o $@ $< '1,1,1,1'
+
clean:
rm -f ${BUILDDIR}/*.ps ${BUILDDIR}/*.pdf