From d09eb6c95b85fcb22d6b36353c82c3b4293e6fb7 Mon Sep 17 00:00:00 2001 From: Tharre Date: Wed, 13 Aug 2014 17:30:02 +0200 Subject: Implement (incomplete) dependency checking. Targets still do not depend on .do-files, and a lot of the edge cases are still not handled correctly. Furthermore some error-checking code is still missing, which could possibly crash the program (partially marked with comments), as well as some free() calls. An utitlity python script (print_dep.py) was also added to aid in debugging matters. --- src/build.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/build.h') diff --git a/src/build.h b/src/build.h index 54093bb..0b34241 100644 --- a/src/build.h +++ b/src/build.h @@ -14,5 +14,8 @@ extern char *get_relpath(const char *target); extern char *get_dep_path(const char *target); extern void add_dep(const char *target, int indent); extern void write_dep_hash(const char *target); +extern bool has_changed(const char *target, int ident, bool is_sub_dependency); +extern bool dependencies_changed(char buf[], size_t read); + #endif -- cgit v1.2.3-70-g09d2