From 864e728705d60c53342f8cbf409ceadf0898d9a1 Mon Sep 17 00:00:00 2001 From: James Booth Date: Sat, 8 Mar 2014 23:00:23 +0000 Subject: [PATCH] Added srdir to git version check --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 1ec141bb..b0ee7d3a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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)\"" >> $@