Bash file naming in makefile
Hey guys,
I'm in need of a little help pertaining to bash scripts in my make file. Basically, what I would liek to do is have a script that increments and appended number everytime I compile the program, kind of an easy way to keep progressive builds in order.
kind of like binary-0.0.1, binary-0.0.2 and so forth.
Right now I just have the name of the binary into a variable that make uses in a cc line. I'm guessing I need a script that would read the variable string, find the last build number and increment it and use that to create the binary.
The other option is that I'm going about this the wrong way and there's an easier and/or better way of doing this that I'm just not seeing.
Either way, that's for the help
Last edited by somnium; 10-18-2005 at 01:40 PM.
|