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 8bd84b3ea7214db1a1719fad188214b3a10cbfd9..2e4d97defcf6bab0e0ec6f1ec454d22107ae211e 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-3,9
+3,13
@@
SRCS := $(wildcard *.tex)
default: final.pdf
default: final.pdf
-once:
+once:
revid.inc
pdflatex -halt-on-error article.tex </dev/null
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
final.pdf: $(SRCS)
$(MAKE) once
$(MAKE) once
@@
-16,4
+20,4
@@
final.pdf: $(SRCS)
pdftops $*.pdf $*.ps
clean:
pdftops $*.pdf $*.ps
clean:
- rm -f *.aux *.log *.dvi *.out *.pdf *~
+ rm -f *.aux *.log *.dvi *.out *.pdf *
.ps *
~