comparison en/Makefile @ 29:6e988159394b

Add revision ID to output.
author Bryan O'Sullivan <bos@serpentine.com>
date Wed, 12 Jul 2006 00:33:27 -0700
parents 1bc6c1f0192a
children 51d94bd2804c
comparison
equal deleted inserted replaced
27:535e87792eb1 29:6e988159394b
1 # This makefile requires GNU make. 1 # This makefile requires GNU make.
2 2
3 hg_id := $(shell hg parents --template '{node|short}' | head -1) 3 hg_id := $(shell hg parents --template '{node|short}\n' | head -1)
4 4
5 sources := \ 5 sources := \
6 00book.tex \ 6 00book.tex \
7 99book.bib \ 7 99book.bib \
8 99defs.tex \ 8 99defs.tex \
105 105
106 examples/.run: $(example-sources) 106 examples/.run: $(example-sources)
107 cd examples && ./run-example 107 cd examples && ./run-example
108 108
109 build_id.tex: $(wildcard ../.hg/00changelog.[id]) 109 build_id.tex: $(wildcard ../.hg/00changelog.[id])
110 echo $(hg_id) > build_id.tex 110 echo -n $(hg_id) > build_id.tex
111 111
112 clean: 112 clean:
113 rm -rf beta html pdf *.eps *.png *.aux *.dvi *.log *.out \ 113 rm -rf beta html pdf *.eps *.png *.aux *.dvi *.log *.out \
114 examples/*.out examples/.run build_id.tex 114 examples/*.out examples/.run build_id.tex