'Override Makefile variable

Trying override option_one variable in Makefile from command line make option_one=hi. But output shows variable is not overridden. What I do wrong?

Makefile content:

override option_one = did_override
all: 
    echo $(option_one)

Command output:

echo did_override
did_override


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source