On Mon, 2025-02-10 at 03:40 +0900, Masahiro Yamada wrote:
> ifeq ($(SUBMAKE),)
> MAKEFLAGS += --no-print-directory
> MAKEFLAGS += -rR
> all:
> @echo in top: MAKEFLAGS=$(MAKEFLAGS)
> $(MAKE) -w SUBMAKE=1
> else
> all:
> @echo in submake: MAKEFLAGS=$(MAKEFLAGS)
> endif
>
>
>
On Mon, 2025-02-10 at 02:01 +0900, Masahiro Yamada wrote:
> The first word in $(MAKEFLAGS) is not a group of short options.
>
> $(MAKE) MAKEFLAGS=--no-print-directory SUBMAKE=1
If you override the value of MAKEFLAGS as a command-line variable
assignment, then the value you specified is th