From: divverent Date: Sat, 7 May 2011 15:21:57 +0000 (+0000) Subject: try harder to get a version string out of git X-Git-Tag: xonotic-v0.5.0~205 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=14392dd82658145a1901687179aebb43a3ded649;p=xonotic%2Fdarkplaces.git try harder to get a version string out of git git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11117 d7cf8633-e32d-0410-b094-e92efae38249 ::stable-branch::merge=7a2ff0cd57402211c207a405d85d6c7d40e2c637 --- diff --git a/makefile.inc b/makefile.inc index 6bb61ba2..be5bc25e 100644 --- a/makefile.inc +++ b/makefile.inc @@ -209,9 +209,9 @@ DO_CC=$(CC) $(CFLAGS) -c $< -o $@ # Link -LDFLAGS_DEBUG=-g -ggdb $(OPTIM_DEBUG) -DSVNREVISION=`{ test -d .svn && svnversion; } || { test -d .git && git describe; } || echo -` -DBUILDTYPE=debug -LDFLAGS_PROFILE=-g -pg -fprofile-arcs $(OPTIM_RELEASE) -DSVNREVISION=`{ test -d .svn && svnversion; } || { test -d .git && git describe; } || echo -` -DBUILDTYPE=profile -LDFLAGS_RELEASE=$(OPTIM_RELEASE) -DSVNREVISION=`{ test -d .svn && svnversion; } || { test -d .git && git describe; } || echo -` -DBUILDTYPE=release +LDFLAGS_DEBUG=-g -ggdb $(OPTIM_DEBUG) -DSVNREVISION=`{ test -d .svn && svnversion; } || { test -d .git && git describe --always --dirty; } || echo -` -DBUILDTYPE=debug +LDFLAGS_PROFILE=-g -pg -fprofile-arcs $(OPTIM_RELEASE) -DSVNREVISION=`{ test -d .svn && svnversion; } || { test -d .git && git describe --always --dirty; } || echo -` -DBUILDTYPE=profile +LDFLAGS_RELEASE=$(OPTIM_RELEASE) -DSVNREVISION=`{ test -d .svn && svnversion; } || { test -d .git && git describe --always --dirty; } || echo -` -DBUILDTYPE=release ##### UNIX specific variables #####