1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-22 19:45:54 -04:00

Added srdir to git version check

This commit is contained in:
James Booth 2014-03-08 23:00:23 +00:00
parent 2c976d3523
commit 864e728705

View File

@ -113,7 +113,7 @@ tests_testsuite_LDADD = -lcmocka
man_MANS = docs/profanity.1
if INCLUDE_GIT_VERSION
$(git_include).in: .git/HEAD .git/index
$(git_include).in: $(srcdir)/.git/HEAD $(srcdir)/.git/index
rm -f $@
echo "#ifndef PROF_GIT_BRANCH" >> $@
echo "#define PROF_GIT_BRANCH \"$(shell git rev-parse --symbolic-full-name --abbrev-ref HEAD)\"" >> $@