Keep recipe-line semantics standard.
Section: Features to avoid for portability
Avoid `.ONESHELL` when targeting POSIX make
makefile
makefile
release:
cd dist && tar -czf app.tar.gz appExplanation
`.ONESHELL` is a GNU extension.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Features to avoid for portability
Avoid eval for POSIX portability
Prefer explicit rules over GNU metaprogramming.
Avoid GNU wildcard dependence
List sources explicitly or generate files in configure scripts.
Use shell short-circuit safely
Stop on failure explicitly within one recipe line.
POSIX-style portable rule
Write simple, explicit file rules compatible with standard make.
Use standard macros
Honor user-overridable standard compiler variables.