Created
August 24, 2010 10:22
-
-
Save apk/547324 to your computer and use it in GitHub Desktop.
Compile in git version
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Makefile: | |
// CPPFLAGS += -DGIT_VERSION='"'"`git describe --always --dirty`"'"' | |
#ifdef GIT_VERSION | |
char git_version [] = "$" "Git: " GIT_VERSION "$"; // To be picked up by rcsid | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment