[bug #58341] `make --debug` does not set 'd' in MAKEFLAGS

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[bug #58341] `make --debug` does not set 'd' in MAKEFLAGS

anonymous
URL:
  <https://savannah.gnu.org/bugs/?58341>

                 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

    _______________________________________________________

Details:

OS=Windows_NT (Win10)
MAKE_VERSION=4.2.1

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
MAKEFLAGS = p --debug=b -- $(MAKEOVERRIDES)
```

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:

  <https://savannah.gnu.org/bugs/?58341>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/