diff options
author | Tharre <tharre3@gmail.com> | 2014-11-16 17:30:35 +0100 |
---|---|---|
committer | Tharre <tharre3@gmail.com> | 2014-11-16 17:30:35 +0100 |
commit | b4c1b2145d6a0b1ec4219847dc26877046f84e8b (patch) | |
tree | 6bb3bc8b35afc7a76bf53d93227b07e91501b807 /src/redo.c | |
parent | 19cba89127381d9dc06d1e823b123231496e9a3d (diff) | |
download | redo-b4c1b2145d6a0b1ec4219847dc26877046f84e8b.tar.gz redo-b4c1b2145d6a0b1ec4219847dc26877046f84e8b.tar.xz redo-b4c1b2145d6a0b1ec4219847dc26877046f84e8b.zip |
Change the way redo updates targets.
It's done a lot more efficiently now, as we are no longer checking if a
target is out-of-date before we rebuild it, but instead rebuild
subtargets directly when they are checked.
We also now correctly depend on .do files.
Diffstat (limited to 'src/redo.c')
-rw-r--r-- | src/redo.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -51,11 +51,11 @@ int main(int argc, char *argv[]) { prepare_env(); if (argc < 2) { - build_target("all"); + update_target("all", 'a'); } else { int i; for (i = 1; i < argc; ++i) { - build_target(argv[i]); + update_target(argv[i], 'a'); } } } |