1 |
commit: e593adfd231d69cbf5e620c2f500f3cb5ca35d53 |
2 |
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 29 22:44:17 2017 +0000 |
4 |
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 29 22:44:17 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=e593adfd |
7 |
|
8 |
Makefile: Option for two-sided layout. |
9 |
|
10 |
Makefile | 8 +++++++- |
11 |
1 file changed, 7 insertions(+), 1 deletion(-) |
12 |
|
13 |
diff --git a/Makefile b/Makefile |
14 |
index 74b6439..206a7fc 100644 |
15 |
--- a/Makefile |
16 |
+++ b/Makefile |
17 |
@@ -1,6 +1,8 @@ |
18 |
LATEXFILES := $(filter-out vc.tex,$(wildcard *.tex)) pms.cls |
19 |
SOURCES = $(LATEXFILES) pms.bib vc vc-git.awk Makefile |
20 |
|
21 |
+TWOSIDE = |
22 |
+ |
23 |
# latex chokes on aux files produced by tex4ht, so remove them |
24 |
aux-clean = if grep -q rEfLiNK pms.aux 2>/dev/null; then rm -f *.aux; fi |
25 |
|
26 |
@@ -13,7 +15,11 @@ pms.pdf: $(LATEXFILES) pms.bbl vc.tex |
27 |
set -e; \ |
28 |
while true; do \ |
29 |
pdflatex eapi-cheatsheet; \ |
30 |
- pdflatex pms; \ |
31 |
+ if test -z '$(TWOSIDE)'; then \ |
32 |
+ pdflatex pms; \ |
33 |
+ else \ |
34 |
+ pdflatex '\PassOptionsToClass{twoside}{pms}\input{pms}'; \ |
35 |
+ fi; \ |
36 |
grep -q 'Warning.*Rerun' eapi-cheatsheet.log pms.log || break; \ |
37 |
done |