Whats the output given by make -p command?
hello,
while reading man make i came to know about make -p option "Prints the data base (rules and variable values) that results from reading the makefiles" But i want to know which makefiles this command reads? also i found in output shell environment variables that i declare in .bshrc. how they came there? regards, cranium |
By default, make searches for a file called Makefile or makefile (some versions may search for other variations) in the current directory to parse. You can override that with the -f option. Also, make inherits its environment from the shell so you can set variables in your shell for use in the Makefile.
|
It shows all the in-built rules plus those of
the local Makefile. Read the manual!!!!! I always use make -pns cos it sounds a bit rude. like ls -Fart but i am very childish. |
All times are GMT -5. The time now is 12:11 AM. |