Correctly handle dependencies for "cd somewhere; redo-ifchange somefile"
We would build 'somefile' correctly the first time, but we wouldn't attach the dependency on somefile to the right $TARGET, so our target would not auto-rebuild in the future based on somefile.
This commit is contained in:
parent
984ad747f8
commit
60f5446733
6 changed files with 21 additions and 5 deletions
|
|
@ -52,7 +52,9 @@ try:
|
|||
try:
|
||||
targets = sys.argv[1:]
|
||||
for t in targets:
|
||||
state.add_dep(vars.TARGET, 'm', t)
|
||||
state.add_dep(os.path.join(vars.STARTDIR,
|
||||
os.path.join(vars.PWD, vars.TARGET)),
|
||||
'm', t)
|
||||
rv = builder.main(targets, should_build)
|
||||
finally:
|
||||
jwack.force_return_tokens()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue