diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-07-21 09:39:57 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-07-21 09:39:57 +0200 |
commit | 10604d850510e46b2ee625548abe5eb9a1172a0d (patch) | |
tree | 0a301d0d69afe2123a406afeeff03f7fe89c4433 /build/target.cxx | |
parent | cb8399da1f0b1c5f28e443c98bfc3cb4e12b8cbf (diff) |
Add alias{} target type, use as base for dir{}
Diffstat (limited to 'build/target.cxx')
-rw-r--r-- | build/target.cxx | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/build/target.cxx b/build/target.cxx index 63bb2fe..f9662fa 100644 --- a/build/target.cxx +++ b/build/target.cxx @@ -297,9 +297,8 @@ namespace build static target* search_alias (const prerequisite_key& pk) { - // For an alias/action we don't want to silently create a target - // since it will do nothing and it most likely not what the author - // intended. + // For an alias we don't want to silently create a target since it + // will do nothing and it most likely not what the user intended. // target* t (search_existing_target (pk)); @@ -368,11 +367,22 @@ namespace build false }; + const target_type alias::static_type + { + typeid (alias), + "alias", + &target::static_type, + &target_factory<alias>, + nullptr, // Should never need. + &search_alias, + false + }; + const target_type dir::static_type { typeid (dir), "dir", - &target::static_type, + &alias::static_type, &target_factory<dir>, nullptr, // Should never need. &search_alias, |