diff --git a/coreapi/Makefile.am b/coreapi/Makefile.am index 2059a9ff9..b6ed2ec32 100644 --- a/coreapi/Makefile.am +++ b/coreapi/Makefile.am @@ -1,8 +1,8 @@ GITVERSION_FILE=liblinphone_gitversion.h GITVERSION_FILE_TMP=liblinphone_gitversion.h.tmp -GITDESCRIBE=`git describe --always` -GIT_TAG=`git describe --abbrev=0` -GITREVISION=`git rev-parse HEAD` +GITDESCRIBE=`cd $(top_srcdir) && git describe --always` +GIT_TAG=`cd $(top_srcdir) && git describe --abbrev=0` +GITREVISION=`cd $(top_srcdir) && git rev-parse HEAD` ECHO=/bin/echo