chiark
/
gitweb
/
~ian
/
topbloke-formulae.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make clean - remove *.ps
[topbloke-formulae.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index 1713c65b06549eba6d58134590a5ea2055bb4b97..2e4d97defcf6bab0e0ec6f1ec454d22107ae211e 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,13
+1,23
@@
SRCS := $(wildcard *.tex)
SRCS := $(wildcard *.tex)
-default:
article
.pdf
+default:
final
.pdf
-article.pdf: $(SRCS)
+once: revid.inc
pdflatex -halt-on-error article.tex </dev/null
pdflatex -halt-on-error article.tex </dev/null
-article.ps: article.pdf
- pdftops article.pdf article.ps
+revid.inc: .git-revid $(SRCS) Makefile
+ ./$< >$@.new
+ cmp $@.new $@ || mv -f $@.new $@
+
+final.pdf: $(SRCS)
+ $(MAKE) once
+ $(MAKE) once
+ $(MAKE) once
+ cp article.pdf final.pdf
+
+%.ps: %.pdf
+ pdftops $*.pdf $*.ps
clean:
clean:
- rm -f *.aux *.log *.dvi *.out *.pdf *~
+ rm -f *.aux *.log *.dvi *.out *.pdf *
.ps *
~