Review your favorite Linux distribution.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 03-11-2005, 12:58 AM   #1
Registered: Feb 2004
Distribution: FC4,RHEL4
Posts: 223

Rep: Reputation: 30
Whats the output given by make -p command?

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?
Old 03-11-2005, 01:35 AM   #2
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,265

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
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.
Old 03-11-2005, 07:11 AM   #3
Senior Member
Registered: Mar 2004
Location: england
Distribution: Debian, Mint, Puppy, Raspbian
Posts: 3,371

Rep: Reputation: 192Reputation: 192
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
whats the first command? matthewa Linux From Scratch 4 04-04-2005 03:45 PM
Redirecting output to a command-line argument of another command madiyaan Linux - Newbie 1 02-19-2005 05:35 PM
Look the output of: make dep && make clean bzImage modules modules_install Hell-Shooter Linux - General 2 06-05-2004 06:05 AM
whats the open command? zexter Linux - General 17 11-02-2003 01:57 AM
whats the command for this. dkc_ace Linux - General 1 12-20-2002 10:55 PM

All times are GMT -5. The time now is 03:29 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration