aboutsummaryrefslogtreecommitdiffstats
path: root/src/build.h
diff options
context:
space:
mode:
authorTharre <tharre3@gmail.com>2014-11-16 17:30:35 +0100
committerTharre <tharre3@gmail.com>2014-11-16 17:30:35 +0100
commitb4c1b2145d6a0b1ec4219847dc26877046f84e8b (patch)
tree6bb3bc8b35afc7a76bf53d93227b07e91501b807 /src/build.h
parent19cba89127381d9dc06d1e823b123231496e9a3d (diff)
downloadredo-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/build.h')
-rw-r--r--src/build.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/build.h b/src/build.h
index 8a5f072..e4ef626 100644
--- a/src/build.h
+++ b/src/build.h
@@ -12,7 +12,7 @@
#include <stdbool.h>
extern void add_dep(const char *target, const char *parent, int ident);
-extern bool has_changed(const char *target, int ident, bool is_sub_dependency);
+extern int update_target(const char *target, int ident);
extern int build_target(const char *target);
extern bool environment_sane();