I'd like to have a C define that represents the timestamp at which my program was last built. For example, something like this:
import time
bld.program (target = "foo",
source = [ "src/foo.c" ],
defines = [ time.strftime ('BUILD_TIMESTAMP="%Y/%m/%d %H:%M:%S"') ])
But I don't want the program to be rebuilt when the only thing that changes is the timestamp. With SCons, I could get the effect I want using $(
and $)
(anything between $(
and $)
is ignored when computing the hash to decide if something must be rebuilt). Is there something similar in waf?