mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-08 13:38:05 +02:00
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>
This commit is contained in:
parent
eb4fa8e4f5
commit
a486fe166c
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ weston_SOURCES = \
|
|||
weston-egl-ext.h
|
||||
|
||||
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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue