1 |
commit: dc6afee300913559311996bb59efb1ba32c35dd6 |
2 |
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Mar 28 00:55:21 2017 +0000 |
4 |
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Mar 28 00:55:21 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=dc6afee3 |
7 |
|
8 |
Makefile: Move cleanup of aux files into separate rule. |
9 |
|
10 |
Makefile | 16 +++++++++------- |
11 |
1 file changed, 9 insertions(+), 7 deletions(-) |
12 |
|
13 |
diff --git a/Makefile b/Makefile |
14 |
index 70d1883..bc1ee51 100644 |
15 |
--- a/Makefile |
16 |
+++ b/Makefile |
17 |
@@ -8,11 +8,13 @@ clean : |
18 |
maintainer-clean: clean |
19 |
rm -f vc.tex |
20 |
|
21 |
-LATEXFILES := $(filter-out vc.tex,$(wildcard *.tex)) pms.cls |
22 |
- |
23 |
-pms.pdf: $(LATEXFILES) pms.bbl vc.tex eapi-cheatsheet.pdf |
24 |
+aux-clean: |
25 |
@# latex chokes on aux files produced by tex4ht, so remove them |
26 |
if grep -q rEfLiNK pms.aux 2>/dev/null; then rm -f *.aux; fi |
27 |
+ |
28 |
+LATEXFILES := $(filter-out vc.tex,$(wildcard *.tex)) pms.cls |
29 |
+ |
30 |
+pms.pdf: $(LATEXFILES) pms.bbl vc.tex eapi-cheatsheet.pdf aux-clean |
31 |
pdflatex pms |
32 |
pdflatex pms |
33 |
pdflatex eapi-cheatsheet |
34 |
@@ -39,10 +41,10 @@ pms.bbl: pms.bib pms.tex vc.tex eapi-cheatsheet.pdf |
35 |
latex pms |
36 |
bibtex pms |
37 |
|
38 |
-eapi-cheatsheet.pdf: vc.tex |
39 |
+eapi-cheatsheet.pdf: vc.tex aux-clean |
40 |
pdflatex eapi-cheatsheet |
41 |
|
42 |
-eapi-cheatsheet-nocombine.pdf: vc.tex |
43 |
+eapi-cheatsheet-nocombine.pdf: vc.tex aux-clean |
44 |
@# cheat sheet with separate pages, for proofreading |
45 |
pdflatex -jobname eapi-cheatsheet-nocombine \ |
46 |
'\PassOptionsToClass{nocombine}{leaflet}\input{eapi-cheatsheet.tex}' |
47 |
@@ -50,7 +52,7 @@ eapi-cheatsheet-nocombine.pdf: vc.tex |
48 |
vc.tex: $(LATEXFILES) vc vc-git.awk |
49 |
/bin/sh ./vc |
50 |
|
51 |
-pms.dvi: $(LATEXFILES) pms.bbl vc.tex |
52 |
+pms.dvi: $(LATEXFILES) pms.bbl vc.tex aux-clean |
53 |
latex pms |
54 |
latex pms |
55 |
latex pms |
56 |
@@ -67,4 +69,4 @@ upload: |
57 |
|
58 |
.default: all |
59 |
|
60 |
-.phony: clean maintainer-clean dist upload |
61 |
+.phony: clean maintainer-clean aux-clean dist upload |