I am trying to save my SVN revision info into a macro while making my code by Microsoft Visual Studio's nmake.
In GNU make, I do something like:
SVN_REVISION=r$(shell svnversion -n)
so I get for example: SVN_REVISION=r10001
Is this possible to do in Microsoft nmake too?
Thank you in advance.
Using the techniques mentioned along with a recursive call to make, it can be done this way: