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:
Avery Pennarun 2010-11-24 03:06:18 -08:00
commit 60f5446733
6 changed files with 21 additions and 5 deletions

View file

@ -1,4 +1,4 @@
redo example/clean curse/clean deps/clean "space dir/clean"
rm -f c c.c c.c.c c.c.c.b c.c.c.b.b d mode1 makedir.log
rm -f c c.c c.c.c c.c.c.b c.c.c.b.b d mode1 makedir.log chdir1
rm -f hello [by]ellow *.o *~ .*~ CC LD passfail
rm -rf makedir