Commit 360b6b5c authored by jan.koester's avatar jan.koester
Browse files

more gnu

parent 1612dc39
Loading
Loading
Loading
Loading
+4 −0
Changes for executor.cpp: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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;
    }