aboutsummaryrefslogtreecommitdiff
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
parentf8febc3e23808931de6efd5b41dda455530c00b8 (diff)
Verso version of all PDFs
-rw-r--r--Makefile9
-rw-r--r--README.rst6
2 files changed, 12 insertions, 3 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
diff --git a/README.rst b/README.rst
index 37b011b..7d5d2a5 100644
--- a/README.rst
+++ b/README.rst
@@ -55,7 +55,9 @@ Building
~~~~~~~~
Simply run ``make`` with no options to build everything: postscript, PDF
-and n-up versions of PDF files smaller than A4.
+and n-up versions of PDF files smaller than A4, plus mirror versions of
+every PDF (the ones with ``-v`` in the name) that can be used to print
+pages front and back.
Subtargets are available to build just the postscript files (``make
ps``) and PDF (``make pdf``), and can be used in case you are missing
@@ -100,7 +102,7 @@ if needed, create new ones.
License
-------
-Copyright (C) 2004-2017 Elena Grandi
+Copyright (C) 2004-2019 Elena Grandi
All rights reserved.
Redistribution and use in source and binary forms, with or without