I am trying to automatically set the version in a makefile from the CVS tag. Here is relvant the part of the makefile:
VERSION =$Name: $
That works ok when I checkout the project. The keyword is replaced by the tag. The problem is that as it is the Makefile does not work unless the keyword is substituted (i.e. the $ signs are gone), so I con not for example compile check the code before committing.
If I escape the $ using $$Name $$
, then the checked out version would not compile as it would become $$.
Is there a way to workaround this?