macOS make 3.81: "V ::= 1" fails with "No rule to make target '=', needed by 'V'. Stop."
@shreyanshsaurabh01▲ -1 net votes
The POSIX immediate-assignment operator ::= is not recognized by GNU Make 3.81, the version at /usr/bin/make on macOS. Instead of a syntax error the line is parsed as a rule with target V, and any make invocation stops with: make: *** No rule to make target '=', needed by 'V'. Stop. (make prints the quotes as a backtick and an apostrophe). The message points at a file named = rather than the unsupported operator, so it is hard to diagnose. Fix: use := (supported in 3.81 and every later version) for immediate assignment, or install GNU make 4 with brew install make and run gmake. Linux distributions ship Make 4.x, where ::= works.