Loading executor.cpp +4 −0 Changes for executor.cpp: 4 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -279,6 +279,10 @@ int Executor::build_sequential(const std::string& target) { if (!rule) { if (file_exists(target)) return 0; // A target declared .PHONY but lacking any rule/recipe (e.g. Kbuild's // "PHONY += outputmakefile" whose recipe is guarded by a conditional) // is treated by GNU make as an always-run no-op, not an error. if (mf_.phony_targets.count(target)) return 0; std::cerr << "makeplus: *** No rule to make target '" << target << "'. Stop." << std::endl; return 2; } Loading Loading
executor.cpp +4 −0 Changes for executor.cpp: 4 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -279,6 +279,10 @@ int Executor::build_sequential(const std::string& target) { if (!rule) { if (file_exists(target)) return 0; // A target declared .PHONY but lacking any rule/recipe (e.g. Kbuild's // "PHONY += outputmakefile" whose recipe is guarded by a conditional) // is treated by GNU make as an always-run no-op, not an error. if (mf_.phony_targets.count(target)) return 0; std::cerr << "makeplus: *** No rule to make target '" << target << "'. Stop." << std::endl; return 2; } Loading