On Jun 5, 2015, at 7:26 PM, Christos Zoulas wrote:
The question is what should -p do? christos
from the man page of gmake:
-p, --print-data-base
Print the data base (rules and variable values) that
results from
reading the makefiles; then execute as usual or as
otherwise spec-
ified. This also prints the version information given
by the -v
switch (see below). To print the data base without
trying to
remake any files, use make -p -f/dev/null.
Checking with _GNU_Make_"A Program for Directed Compilation" from GNU
Press,
describes it the same way, but adds "The data base output contains
filename,
and linenumber information for command and variable definitions, so
it can be
useful debugging tool in complex enviroments." The books also admits
"GNU make
conforms to section 6.2 of IEEE Standard 1003.2-1992(POSIX.2). I'm
thinking
it's similar in functionality to -d [-]flagsTurn on debugging, and specify which portions of make are to print debugging information. Unless the flags are preceded by `-' they are added to the MAKEFLAGS environment variable and will be processed by any child make processes. By default, debugging information is printed to standard error, but this can be changed using the F debugging flag. The debugging output is always unbuffered; in addition, if debugging is enabled but debugging output is not directed to standard output, then the standard out- put is line buffered. Flags is one or more of the following:
A Print all possible debugging information; equivalent to
specifying all of the debugging flags.
<snip>
for the system make. I've attached output from gmake, from the first
project
I could think of that used GNU make.
Attachment:
gmake.output.gz
Description: GNU Zip compressed data