aboutsummaryrefslogtreecommitdiff
path: root/build/name
diff options
context:
space:
mode:
Diffstat (limited to 'build/name')
-rw-r--r--build/name4
1 files changed, 4 insertions, 0 deletions
diff --git a/build/name b/build/name
index db7b61c..00f0c00 100644
--- a/build/name
+++ b/build/name
@@ -17,12 +17,16 @@ namespace build
// A name is what we operate on by default. Depending on the context,
// it can be interpreted as a target or prerequisite name. A name
// without a type and directory can be used to represent any text.
+ // A name with directory and empty value represents a directory.
//
struct name
{
explicit
name (std::string v): value (std::move (v)) {}
+ explicit
+ name (path d): dir (std::move (d)) {}
+
name (std::string t, path d, std::string v)
: type (std::move (t)), dir (std::move (d)), value (std::move (v)) {}