From bfbb506ff1a5e87401d4aa633f0707d1238082d0 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 10 Jul 2021 17:59:44 +0200 Subject: Print target names instead of target files when listing targets. --- task.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'task.cc') diff --git a/task.cc b/task.cc index 5a08a47..8c48543 100644 --- a/task.cc +++ b/task.cc @@ -35,6 +35,11 @@ int Task::registerDepTasks(const std::list>& tasks) return 0; } +std::string Task::name() const +{ + return config.target; +} + bool Task::dirty() { for(const auto& task : dependsTasks) -- cgit v1.2.3