Mercurial > hgbook
diff 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 |
line wrap: on
line diff
--- a/en/Makefile Wed May 30 19:59:52 2007 -0700 +++ b/en/Makefile Wed May 30 20:06:05 2007 -0700 @@ -188,7 +188,12 @@ examples/%.run: examples/% examples/run-example cd examples && ./run-example $(notdir $<) -build_id.tex: $(wildcard ../.hg/00changelog.[id]) +changelog := $(wildcard ../.hg/store/00changelog.[id]) +ifeq ($(changelog),) +changelog := $(wildcard ../.hg/00changelog.[id]) +endif + +build_id.tex: $(changelog) echo -n '$(hg-id)' > build_id.tex hg_id.tex: $(hg)