summaryrefslogtreecommitdiff
path: root/src/sna/Makefile.am
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-01-13 13:30:13 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2012-01-14 18:13:47 +0000
commit20ff4a1d73cc10e1f53050b19b8799ccbb5c7d04 (patch)
tree59ef3588ca127ecc8b141db9b3951cdf967f03a6 /src/sna/Makefile.am
parenta4d5d725996b94e314ae7697c7a597ed2f60e8cd (diff)
sna: Use top_srcdir to detect .git rather than top_builddir
For srcdir != builddir builds, we need to be searching the source tree for the git id. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/Makefile.am')
-rw-r--r--src/sna/Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/Makefile.am b/src/sna/Makefile.am
index 60430008..2809617d 100644
--- a/src/sna/Makefile.am
+++ b/src/sna/Makefile.am
@@ -105,7 +105,7 @@ libsna_la_SOURCES += \
endif
if HAVE_DOT_GIT
-git_version.h: $(top_builddir)/.git/HEAD $(shell sed -e '/ref:/!d' -e 's#ref: *#$(top_builddir)/.git/#' < $(top_builddir)/.git/HEAD)
+git_version.h: $(top_srcdir)/.git/HEAD $(shell sed -e '/ref:/!d' -e 's#ref: *#$(top_srcdir)/.git/#' < $(top_srcdir)/.git/HEAD)
@echo "Recording git-tree used for compilation: `git describe`"
@V=`git describe`; echo "static const char git_version[] = \"$$V\";" > git_version.h
sna_driver.c: git_version.h