TIL Target-specific Variable Values in GNU Make. The values set for a target are also passed to all the prerequisites of the targets.
https://www.gnu.org/software/make/manual/html_node/Target_002dspecific.html
build:
@echo "$(FEATURE)"
deploy: FEATURE = enable
deploy: build
@echo "$(FEATURE)"
This will print:
enable
enable