aboutsummaryrefslogtreecommitdiff
path: root/build/rule
diff options
context:
space:
mode:
Diffstat (limited to 'build/rule')
-rw-r--r--build/rule14
1 files changed, 14 insertions, 0 deletions
diff --git a/build/rule b/build/rule
index 5339b40..af1bcc8 100644
--- a/build/rule
+++ b/build/rule
@@ -116,6 +116,20 @@ namespace build
static fsdir_rule instance;
};
+
+ // Fallback rule that always matches and does nothing.
+ //
+ class fallback_rule: public build::rule
+ {
+ public:
+ virtual match_result
+ match (action, target& t, const std::string&) const {return t;}
+
+ virtual recipe
+ apply (action, target&, const match_result&) const {return noop_recipe;}
+
+ static fallback_rule instance;
+ };
}
#endif // BUILD_RULE