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/target | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'build/target') diff --git a/build/target b/build/target index da5cf71..881bfb7 100644 --- a/build/target +++ b/build/target @@ -255,6 +255,23 @@ namespace build virtual const target_type& type () const {return static_type;} static const target_type static_type; }; + + // While a filesystem directory is mtime-based, the semantics is + // not very useful in our case. In particular, if another target + // depends on fsdir{}, then all that's desired is the creation of + // the directory if it doesn't already exist. In particular, we + // don't want to update the target just because some unrelated + // entry was created in that directory. + // + class fsdir: public target + { + public: + using target::target; + + public: + virtual const target_type& type () const {return static_type;} + static const target_type static_type; + }; } #endif // BUILD_TARGET -- cgit v1.1