.MAKEFLAGS edited is not taken into account e.g. in make.conf

Mathieu Prevot freebsd-stable at club-internet.fr
Tue May 30 08:45:17 PDT 2006


Hello,

only real arguments (passed with command) are taken into account,
when I edit .MAKEFLAGS (makefile or /etc/make.conf) there is a new .MAKEFLAGS
but there no expected effects.
You can test this with the -dA option, and with the following ./makefile
content (extract):
-----
.MAKEFLAGS+= -dA
disp:
	@echo ${.MAKEFLAGS}
-----

`make -dA` works fine
`make -dA disp` displays "-dA -dA"

BUT

`make` does NOT work i.e. there is no debug output
`make disp` displays "-dA"

I use RELENG_6 amd64 ...

regards,
Mathieu


More information about the freebsd-stable mailing list