From 233255f0e14f364841751755958375fe27380ba6 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 14 Mar 2017 11:37:14 +0200 Subject: Implement implied buildfile support In essence, if the buildfile is: ./: */ Then it can be omitted entirely (provided there is at least one subdirectory). --- build2/target | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'build2/target') diff --git a/build2/target b/build2/target index ef1e34d..c196060 100644 --- a/build2/target +++ b/build2/target @@ -307,7 +307,7 @@ namespace build2 prerequisites () const; // Swap-in a list of prerequisites. Return false if unsuccessful (i.e., - // some beat us to it). Note that it can be called on const target. + // someone beat us to it). Note that it can be called on const target. // bool prerequisites (prerequisites_type&&) const; @@ -1473,6 +1473,11 @@ namespace build2 public: static const target_type static_type; virtual const target_type& dynamic_type () const {return static_type;} + + public: + template + static const target* + search_implied (const scope&, const K&, tracer&); }; // While a filesystem directory is mtime-based, the semantics is -- cgit v1.1