summaryrefslogtreecommitdiff
path: root/task.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2021-06-12 16:16:41 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2021-06-12 16:16:41 +0200
commit6bcbf18a6a67707c13d66b96770c8b210a45b9f4 (patch)
treebbbc866f84df2985db6ca8719884e4fb09fd10cf /task.h
parent889106af4d8381ac188a6532625e2c642150220f (diff)
Skip non-dirty tasks.
Diffstat (limited to 'task.h')
-rw-r--r--task.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/task.h b/task.h
index ee67b5c..bdd881b 100644
--- a/task.h
+++ b/task.h
@@ -16,11 +16,16 @@ public:
const Settings& settings,
const std::string& source);
+ bool dirty();
+
int run();
int clean();
- std::vector<std::string> depends();
+ std::vector<std::string> depends() const;
+
+ std::string target() const;
+private:
std::filesystem::path sourceFile;
std::filesystem::path targetFile;
std::filesystem::path depsFile;