google / kati

An experimental GNU make clone

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"VAR:=<value>" is not supported on the command line

stefanb2 opened this issue · comments

GNU make allows "VAR:=" on the command line. Test case:

$ cat Makefile
$(info VAR: '$(VAR)')

$ make VAR:=old -f Makefile
VAR: 'old'
make: *** No targets.  Stop.

$ ckati -c --warn VAR:=old -f Makefile
VAR: ''

Wow GNU make. You have a lot of unnecessary features:

> cat clvar.mk
$(info $(var))
> make -f clvar.mk 'var ?= foo' 'var += bar'
foo bar