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
revid - include
[topbloke-formulae.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index 8bd84b3ea7214db1a1719fad188214b3a10cbfd9..0f2016e40426218384848c911c789702a98bf9d9 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-3,9
+3,13
@@
SRCS := $(wildcard *.tex)
default: final.pdf
-once:
+once:
revid.inc
pdflatex -halt-on-error article.tex </dev/null
+revid.inc: .git-revid $(SRCS) Makefile
+ ./$< >$@.new
+ cmp $@.new $@ || mv -f $@.new $@
+
final.pdf: $(SRCS)
$(MAKE) once
$(MAKE) once