commit:     e593adfd231d69cbf5e620c2f500f3cb5ca35d53
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Mon May 29 22:44:17 2017 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Mon May 29 22:44:17 2017 +0000
URL:        https://gitweb.gentoo.org/proj/pms.git/commit/?id=e593adfd

Makefile: Option for two-sided layout.

 Makefile | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 74b6439..206a7fc 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,8 @@
 LATEXFILES := $(filter-out vc.tex,$(wildcard *.tex)) pms.cls
 SOURCES = $(LATEXFILES) pms.bib vc vc-git.awk Makefile
 
+TWOSIDE =
+
 # latex chokes on aux files produced by tex4ht, so remove them
 aux-clean = if grep -q rEfLiNK pms.aux 2>/dev/null; then rm -f *.aux; fi
 
@@ -13,7 +15,11 @@ pms.pdf: $(LATEXFILES) pms.bbl vc.tex
        set -e; \
        while true; do \
          pdflatex eapi-cheatsheet; \
-         pdflatex pms; \
+         if test -z '$(TWOSIDE)'; then \
+           pdflatex pms; \
+         else \
+           pdflatex '\PassOptionsToClass{twoside}{pms}\input{pms}'; \
+         fi; \
          grep -q 'Warning.*Rerun' eapi-cheatsheet.log pms.log || break; \
        done
 

Reply via email to