diff --git a/ostd/build/make.hh b/ostd/build/make.hh index aac7e7d..f17990a 100644 --- a/ostd/build/make.hh +++ b/ostd/build/make.hh @@ -82,9 +82,13 @@ struct make_rule { } make_rule &body(std::function act_f) noexcept { - p_body = [act_f = std::move(act_f)](auto, auto) { - act_f(); - }; + if (act_f) { + p_body = [act_f = std::move(act_f)](auto, auto) { + act_f(); + }; + } else { + p_body = body_func{}; + } return *this; }