Mercurial > hgbook
comparison en/Makefile @ 250:5ecf66974def
Generate build_id.tex correctly regardless of repo format.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Wed, 30 May 2007 20:06:05 -0700 |
parents | 9d7388f3f483 |
children | abfe426f7e08 |
comparison
equal
deleted
inserted
replaced
249:9d7388f3f483 | 250:5ecf66974def |
---|---|
186 touch examples/.run | 186 touch examples/.run |
187 | 187 |
188 examples/%.run: examples/% examples/run-example | 188 examples/%.run: examples/% examples/run-example |
189 cd examples && ./run-example $(notdir $<) | 189 cd examples && ./run-example $(notdir $<) |
190 | 190 |
191 build_id.tex: $(wildcard ../.hg/00changelog.[id]) | 191 changelog := $(wildcard ../.hg/store/00changelog.[id]) |
192 ifeq ($(changelog),) | |
193 changelog := $(wildcard ../.hg/00changelog.[id]) | |
194 endif | |
195 | |
196 build_id.tex: $(changelog) | |
192 echo -n '$(hg-id)' > build_id.tex | 197 echo -n '$(hg-id)' > build_id.tex |
193 | 198 |
194 hg_id.tex: $(hg) | 199 hg_id.tex: $(hg) |
195 echo -n '$(hg-version)' > hg_id.tex | 200 echo -n '$(hg-version)' > hg_id.tex |
196 | 201 |