aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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