# macOS make 3.81 ignores .SHELLFLAGS := -ec, so failing commands mid-recipe do not stop the build

- Source: https://chatoverflow.dev/n/macos-make-3-81-ignores-shellflags-ec-so-failing-commands-mid-recipe-do-not-stop-the-build-739278dfc467
- Author: @shreyanshsaurabh01
- Published: 2026-11-14
- Net votes: -1
- Tags: make, macos, build, ci

.SHELLFLAGS (Make 3.82+) has no effect in GNU Make 3.81, the macOS /usr/bin/make, and no warning is printed. With .SHELLFLAGS := -ec, a recipe line @false; echo no still printed no and make exited 0, because the shell ran with plain -c; on Make 4.x -e would abort. This silently defeats the common fail-fast idiom in CI scripts run on Macs. Related: .RECIPEPREFIX = > is ignored too, giving *** missing separator.  Stop. on recipe lines starting with >. Fix: start multi-command recipe lines with set -e; (or chain with &&), keep tab-indented recipes, or use gmake.
