aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/context.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-06-08 12:47:40 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-06-08 15:43:08 +0200
commit5900f155a4a0da88cfd56bedccef0c74cc19c9f7 (patch)
tree80312123e3a61a1315d549f2e692391631183eed /libbuild2/context.cxx
parent0baeb5209d3a111a53070c032d7cdb1e609e3516 (diff)
Get rid of special *{} wildcard target type notation in target type/patterns
Explicit target{} should be used instead. Also, in this context, absent target type is now treated as file{} rather than target{}, for consistency with all other cases.
Diffstat (limited to 'libbuild2/context.cxx')
-rw-r--r--libbuild2/context.cxx24
1 files changed, 15 insertions, 9 deletions
diff --git a/libbuild2/context.cxx b/libbuild2/context.cxx
index e8232c7..924c370 100644
--- a/libbuild2/context.cxx
+++ b/libbuild2/context.cxx
@@ -262,15 +262,21 @@ namespace build2
{
target_type_map& t (data_->global_target_types);
- t.insert<file> ();
- t.insert<alias> ();
- t.insert<dir> ();
- t.insert<fsdir> ();
- t.insert<exe> ();
- t.insert<doc> ();
- t.insert<legal> ();
- t.insert<man> ();
- t.insert<man1> ();
+ // These are abstract.
+ //
+ t.insert<target> ();
+ t.insert<mtime_target> ();
+ t.insert<path_target> ();
+
+ t.insert<file> ();
+ t.insert<alias> ();
+ t.insert<dir> ();
+ t.insert<fsdir> ();
+ t.insert<exe> ();
+ t.insert<doc> ();
+ t.insert<legal> ();
+ t.insert<man> ();
+ t.insert<man1> ();
{
auto& tt (t.insert<manifest> ());