diff options
author | Andre Heider <a.heider@gmail.com> | 2013-03-01 15:38:23 +0100 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2013-03-18 21:06:27 -0400 |
commit | ac1cb0b9d20415a5c1a37d2744fb1d2887fc005c (patch) | |
tree | abd04c2ae5abc9c312448460597c67c593ef55a8 | |
parent | e7144fd175d1d68b91aa0cec7ab63381b79385a9 (diff) | |
download | weston-ac1cb0b9d20415a5c1a37d2744fb1d2887fc005c.tar.gz |
src/Makefile.am: Fix git-version.h for out of tree builds
Use --git-dir instead of --work-tree, see
http://marc.info/?l=git&m=120390208721287&w=2
Signed-off-by: Andre Heider <a.heider@gmail.com>
-rw-r--r-- | src/Makefile.am | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 2c93a7b8..d56daa07 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -51,7 +51,7 @@ weston_SOURCES += \ endif git-version.h : .FORCE - $(AM_V_GEN)(echo "#define BUILD_ID \"$(shell git --work-tree=$(top_srcdir) describe --always --dirty) $(shell git --work-tree=$(top_srcdir) log -1 --format='%s (%ci)')\"" > $@-new; \ + $(AM_V_GEN)(echo "#define BUILD_ID \"$(shell git --git-dir=$(top_srcdir)/.git describe --always --dirty) $(shell git --git-dir=$(top_srcdir)/.git log -1 --format='%s (%ci)')\"" > $@-new; \ cmp -s $@ $@-new || cp $@-new $@; \ rm $@-new) |