aboutsummaryrefslogtreecommitdiff
path: root/build/rule
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-02-19 16:10:03 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-02-19 16:10:03 +0200
commit8bd89cfca333e58f6990d7d168649dfc79878f31 (patch)
tree730bb9eec4fc5ddd086ed8465c4d7c0030db0d6b /build/rule
parentb0524a0b18eec9d5e5c3f6ce30b6cecdd02a6306 (diff)
Add support for sourcing/including buildfiles, print, dir{} alias
Diffstat (limited to 'build/rule')
-rw-r--r--build/rule17
1 files changed, 16 insertions, 1 deletions
diff --git a/build/rule b/build/rule
index 325204f..378ed9b 100644
--- a/build/rule
+++ b/build/rule
@@ -31,7 +31,22 @@ namespace build
extern rule_map rules;
- class default_path_rule: public rule
+ // Fallback rule that check that the path exists.
+ //
+ class path_rule: public rule
+ {
+ public:
+ virtual void*
+ match (target&, const std::string& hint) const;
+
+ virtual recipe
+ select (target&, void*) const;
+
+ static target_state
+ update (target&);
+ };
+
+ class dir_rule: public rule
{
public:
virtual void*