diff options
author | Tharre <tharre3@gmail.com> | 2014-08-20 03:40:08 +0200 |
---|---|---|
committer | Tharre <tharre3@gmail.com> | 2014-08-20 03:40:08 +0200 |
commit | 856b72ef61af7f8cafb4abc4cab522da62900322 (patch) | |
tree | dc86585969c3f4d372add0e36d685534efb3c808 /src/redo-ifcreate.c | |
parent | 5e5e7e66ee876e2aa62ac336b4e3c7b8ea6af1ce (diff) | |
download | redo-856b72ef61af7f8cafb4abc4cab522da62900322.tar.gz redo-856b72ef61af7f8cafb4abc4cab522da62900322.tar.xz redo-856b72ef61af7f8cafb4abc4cab522da62900322.zip |
Make targets depend on do-files.
This includes two different scenarios, first if the do-files which was
used to build the target has changed the target must be rebuilt.
Second, if a target was build by a lower priority do-file, like
default.fuu.do, then it must be rebuilt if <target>.fuu.do appears.
Note that at this point, Redofile as do-file is semi-supported, as it's
future is uncertain.
Diffstat (limited to 'src/redo-ifcreate.c')
-rw-r--r-- | src/redo-ifcreate.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/redo-ifcreate.c b/src/redo-ifcreate.c index 71c9a22..955ffdc 100644 --- a/src/redo-ifcreate.c +++ b/src/redo-ifcreate.c @@ -6,12 +6,14 @@ * of the MIT license. See the LICENSE file for details. */ +#include <stddef.h> + #include "build.h" int main(int argc, char *argv[]) { for (int i = 1; i < argc; ++i) { if (has_changed(argv[i], 'e', false)) build_target(argv[i]); - add_dep(argv[i], 'e'); + add_dep(argv[i], NULL, 'e'); } } |