In my makefile I have a variable FOO:
FOO
FOO = /path/to/bar
Is it possible to overwrite this variable during the makefile call? S
Specify them as Var=Value before you specify the target, like make FOO=/path/to/foo all.
Var=Value
make FOO=/path/to/foo all
$ cat Makefile Foo = asdf all: echo $(Foo) $ make all echo asdf asdf $ make Foo=bar all echo bar bar