From 5fc53bd74c7635a292cef041180da4cd32b7fb12 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 24 Feb 2015 06:09:23 +0200 Subject: Add fsdir{} for creating directories --- build/b.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'build/b.cxx') diff --git a/build/b.cxx b/build/b.cxx index 1edce6b..05dac4c 100644 --- a/build/b.cxx +++ b/build/b.cxx @@ -84,6 +84,7 @@ main (int argc, char* argv[]) // target_types.insert (file::static_type); target_types.insert (dir::static_type); + target_types.insert (fsdir::static_type); target_types.insert (exe::static_type); target_types.insert (obj::static_type); @@ -164,7 +165,7 @@ main (int argc, char* argv[]) try { - p.parse (ifs, bf, scopes[path::current ()]); + p.parse (ifs, bf, scopes[out_base]); } catch (const std::ios_base::failure&) { @@ -184,6 +185,9 @@ main (int argc, char* argv[]) dir_rule dir_r; rules[typeid (dir)].emplace ("dir", dir_r); + fsdir_rule fsdir_r; + rules[typeid (fsdir)].emplace ("fsdir", fsdir_r); + path_rule path_r; rules[typeid (path_target)].emplace ("path", path_r); -- cgit v1.1