Summary: `make --debug` does not set 'd' in MAKEFLAGS
                 Project: make
            Submitted by: rivy
            Submitted on: Sat 09 May 2020 06:22:15 PM UTC
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
       Component Version: 4.2.1
        Operating System: None
           Fixed Release: None
           Triage Status: None



OS=Windows_NT (Win10)

When executing make in a specific debug mode using the `--debug[=FLAGS]`
option and tested in the Makefile, ${MAKEFILE} does not have the 'd' flag
within it. Oddly, when printing the database with `-p` (or
`--print-data-base`), the "# Variables" section contains:

# makefile

During the same execution, `$(info MAKEFLAGS=${MAKEFLAGS})` prints
"MAKEFLAGS=p" (no d).

When executed with `-d` at the command line, the "d" is included in the
normally accessible MAKEFLAGS variable.

Is this the expected behavior?
How can I access the "MAKEFLAGS" value printed in the database?

Thanks for your attention.


Reply to this item at:


  Message sent via Savannah

Reply via email to