Closed machinekoder closed 8 years ago
Most assignments in the Makefile use :=. However, ?= is required in order to take command line arguments. See: http://stackoverflow.com/questions/448910/makefile-variable-assignment
:=
?=
e.g. https://github.com/machinekit/machinetalk-protobuf/blob/master/Makefile#L27
not needed
?= is just default value setting
Without this assignment it is not possible to overwrite the variables. e.g. DESTDIR=/opt/local make does not work.
DESTDIR=/opt/local make
But make DESTDIR=/opt/local does work.
make DESTDIR=/opt/local
Most assignments in the Makefile use
:=
. However,?=
is required in order to take command line arguments. See: http://stackoverflow.com/questions/448910/makefile-variable-assignment