02-29-2012, 06:45 AM
I'm not a makefile specialist. If you put this in the GNUmakefile WCVersion.h gets generated with the info but I don't know where to put it in GNUMakefile to get it to work everytime...
Code:
WCVersion.h:
@rm -f WCVersion.h
@echo -ne "#define WCREV " > WCVersion.h
@svnversion -n . >> WCVersion.h