LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Whats the output given by make -p command? (https://www.linuxquestions.org/questions/programming-9/whats-the-output-given-by-make-p-command-300258/)

cranium2004 03-10-2005 11:58 PM

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

btmiller 03-11-2005 12:35 AM

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.

bigearsbilly 03-11-2005 06:11 AM

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.