help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

eliminating MAKEFLAGS in MAKELEVEL > 0


From: marty leisner
Subject: eliminating MAKEFLAGS in MAKELEVEL > 0
Date: Thu, 6 May 2021 19:57:03 -0400

I want to NOT have --debug=v be passed down to submakes in a recursive make.

I figured I could "modify" MAKEFLAGS globally, and I would be fine.   That
doesn't seem to work.

: leisner@t7810 05:18:46; cat Makefile

$(info MAKEFLAGS=${MAKEFLAGS} MAKELEVEL=${MAKELEVEL}
MAKE_VERSION=${MAKE_VERSION} MAKE=${MAKE})

.PHONY=all first
all:
       $(info MAKEFLAGS=${MAKEFLAGS} MAKELEVEL=${MAKELEVEL}
MAKE_VERSION=${MAKE_VERSION} MAKE=${MAKE})
       ${MAKE} first

first:
       $(info MAKEFLAGS=${MAKEFLAGS} MAKELEVEL=${MAKELEVEL}
MAKE_VERSION=${MAKE_VERSION} MAKE=${MAKE})


In seems the first MAKEFLAGS isn't expanded until I tried to reference it
within a target.
How would I delete fields within MAKEFLAGS (for example, --debug=v).

marty


reply via email to

[Prev in Thread] Current Thread [Next in Thread]