aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2019-03-20 09:24:14 +0100
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2019-03-20 09:24:14 +0100
commit0ed2859a9b158de8abcea2c80b83a12ae65e922d (patch)
treeacd038db5a86940f4b28a4fc114162b6f74338e7 /Makefile
parentf8febc3e23808931de6efd5b41dda455530c00b8 (diff)
Verso version of all PDFs
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e35380d..4f39971 100644
--- a/Makefile
+++ b/Makefile
@@ -5,12 +5,16 @@ PS_TARGETS = $(patsubst designs/%.yaml,$(BUILDDIR)/%.ps,$(wildcard designs/*.yam
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))
+VERSO_TARGETS = $(patsubst designs/%.yaml,$(BUILDDIR)/%-v.pdf,$(wildcard designs/*.yaml))
+VERSO_NUP4_TARGETS = $(patsubst designs/%.yaml,$(BUILDDIR)/%-nup4-v.pdf,$(wildcard designs/*-a6.yaml))
+VERSO_NUP2_TARGETS = $(patsubst designs/%.yaml,$(BUILDDIR)/%-nup2-v.pdf,$(wildcard designs/*-a5.yaml))
.PHONY: all ps pdf clean
-all: pdf nup
+all: pdf nup verso
ps: $(PS_TARGETS)
pdf: $(PDF_TARGETS)
nup: $(NUP4_TARGETS) $(NUP2_TARGETS)
+verso: $(VERSO_TARGETS) $(VERSO_NUP4_TARGETS) $(VERSO_NUP2_TARGETS)
$(BUILDDIR)/%.ps: designs/%.yaml
mkdir -p ${BUILDDIR}
@@ -34,6 +38,9 @@ $(BUILDDIR)/%-a5-nup2.pdf: $(BUILDDIR)/%-a5.pdf
$(BUILDDIR)/%-a6-nup4.pdf: $(BUILDDIR)/%-a6.pdf
pdfnup --nup 2x2 --no-landscape -o $@ $< '1,1,1,1'
+$(BUILDDIR)/%-v.pdf: $(BUILDDIR)/%.pdf
+ pdfjam --reflect true -o $@ $<
+
clean:
rm -f ${BUILDDIR}/*.ps ${BUILDDIR}/*.pdf