[Scons-users] always up to date when target is a directory

Carnë Draug carandraug+dev at gmail.com
Thu Feb 14 20:45:25 EST 2013


Hi

The following SCons code says that everything is always up to date,
even after I change the source:

data = env.Command(target = "results/sequences/",
source = "scripts/extract_sequences.pl"),
action = "$SOURCE")

It would appear that the problem is the target being a directory. It
must be a directory since the source will generate an entire directory
structure which may different each time it runs. I have tried with and
without a backslash at the end of the path, and also using target =
Dir("results/sequences/"), both without success. It always says it's
up to date, even after I have changed the source file. Am I missing
anything?

On a related note, how should I specify the paths to be platform compatible?

Thanks,
Carnë


More information about the Scons-users mailing list