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
>
>
>
Hi.
When --no-print-directory is set in MAKEFLAGS,
what is the best way to negate it?
One solution is to filter it out from MAKEFLAGS.
IMHO, it would be simpler to be able to negate
--no-print-directory by passing -w (--print-directory).
[Working solution]
ifeq ($(SUBMAKE),)
MAKEFLAGS += --n