aboutsummaryrefslogtreecommitdiff
path: root/build/context.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-07-21 09:39:57 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-07-21 09:39:57 +0200
commit10604d850510e46b2ee625548abe5eb9a1172a0d (patch)
tree0a301d0d69afe2123a406afeeff03f7fe89c4433 /build/context.cxx
parentcb8399da1f0b1c5f28e443c98bfc3cb4e12b8cbf (diff)
Add alias{} target type, use as base for dir{}
Diffstat (limited to 'build/context.cxx')
-rw-r--r--build/context.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/build/context.cxx b/build/context.cxx
index bd6143a..9b22478 100644
--- a/build/context.cxx
+++ b/build/context.cxx
@@ -30,7 +30,7 @@ namespace build
// Builtin rules.
//
- static dir_rule dir_;
+ static alias_rule alias_;
static fsdir_rule fsdir_;
static file_rule file_;
@@ -67,6 +67,7 @@ namespace build
target_type_map& tts (global_scope->target_types);
tts.insert<file> ();
+ tts.insert<alias> ();
tts.insert<dir> ();
tts.insert<fsdir> ();
}
@@ -76,9 +77,9 @@ namespace build
{
rule_map& rs (global_scope->rules);
- rs.insert<dir> (default_id, "dir", dir_);
- rs.insert<dir> (update_id, "dir", dir_);
- rs.insert<dir> (clean_id, "dir", dir_);
+ rs.insert<alias> (default_id, "alias", alias_);
+ rs.insert<alias> (update_id, "alias", alias_);
+ rs.insert<alias> (clean_id, "alias", alias_);
rs.insert<fsdir> (default_id, "fsdir", fsdir_);
rs.insert<fsdir> (update_id, "fsdir", fsdir_);