chiark
/
gitweb
/
~ian
/
topbloke-formulae.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc5b487
)
more sophisticated makefile (make once etc.)
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 18 Mar 2012 11:10:13 +0000
(11:10 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 18 Mar 2012 11:10:13 +0000
(11:10 +0000)
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index 1713c65b06549eba6d58134590a5ea2055bb4b97..8bd84b3ea7214db1a1719fad188214b3a10cbfd9 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,13
+1,19
@@
SRCS := $(wildcard *.tex)
-default:
article
.pdf
+default:
final
.pdf
-article.pdf: $(SRCS)
+once:
pdflatex -halt-on-error article.tex </dev/null
-article.ps: article.pdf
- pdftops article.pdf article.ps
+final.pdf: $(SRCS)
+ $(MAKE) once
+ $(MAKE) once
+ $(MAKE) once
+ cp article.pdf final.pdf
+
+%.ps: %.pdf
+ pdftops $*.pdf $*.ps
clean:
rm -f *.aux *.log *.dvi *.out *.pdf *~