aboutsummaryrefslogtreecommitdiff
path: root/build/target.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-01-14 11:39:21 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-01-14 11:39:21 +0200
commitce8a94e6a76097ef7eeb34df4257991a20599712 (patch)
tree5e83b9d083f486a6efe889102f7c2a815e6a06c6 /build/target.cxx
parentab4421747146aa7995f0cfb1a639c9121c82c915 (diff)
Track file extension in target, prerequisite
Diffstat (limited to 'build/target.cxx')
-rw-r--r--build/target.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/build/target.cxx b/build/target.cxx
index 4dffe7f..61423db 100644
--- a/build/target.cxx
+++ b/build/target.cxx
@@ -27,7 +27,12 @@ namespace build
os << s << path::traits::directory_separator;
}
- os << t.name << '}';
+ os << t.name;
+
+ if (t.ext != nullptr)
+ os << '.' << *t.ext;
+
+ os << '}';
return os;
}