1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Force git revision update on make

This commit is contained in:
James Booth 2013-09-17 01:11:38 +01:00
parent 6b852a2f0f
commit a15dbdf7ff

View File

@ -1,5 +1,8 @@
if INCLUDE_GIT_VERSION
src/gitversion.c: .git/HEAD .git/index
FORCE:
src/gitversion.c: .git/HEAD .git/index FORCE
rm -f src/gitversion.c src/gitversion.o
echo "#ifndef PROF_GIT_BRANCH" >> $@
echo "#define PROF_GIT_BRANCH \"$(shell git rev-parse --symbolic-full-name --abbrev-ref HEAD)\"" >> $@