From 985e8f5f28da87be779b80942577f088321024af Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 5 Dec 2014 13:26:29 +0200 Subject: Add support for starting processes, getting file timestamps g++-4.9 -std=c++11 -I.. -o bd bd.cxx process.cxx timestamp.cxx --- build/target | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'build/target') diff --git a/build/target b/build/target index e6f05a5..4319ccb 100644 --- a/build/target +++ b/build/target @@ -2,9 +2,12 @@ // copyright : Copyright (c) 2014-2015 Code Synthesis Tools CC // license : MIT; see accompanying LICENSE file +#ifndef BUILD_TARGET +#define BUILD_TARGET + #include #include -#include +#include // std::reference_wrapper namespace build { @@ -29,7 +32,7 @@ namespace build prerequisite (target& t) {prerequisites_.push_back (t);} public: - typedef bool (*rule_type) (target&, const targets&); + typedef bool (*rule_type) (target&); rule_type rule () const {return rule_;} @@ -67,3 +70,5 @@ namespace build using target::target; }; } + +#endif // BUILD_TARGET -- cgit v1.1