LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 03-10-2005, 11:58 PM   #1
cranium2004
Member
 
Registered: Feb 2004
Distribution: FC4,RHEL4
Posts: 223

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

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
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, 06:11 AM   #3
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: FreeBSD, Debian, Mint, Puppy
Posts: 3,287

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


Reply


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 02:45 PM
Redirecting output to a command-line argument of another command madiyaan Linux - Newbie 1 02-19-2005 04:35 PM
Look the output of: make dep && make clean bzImage modules modules_install Hell-Shooter Linux - General 2 06-05-2004 05:05 AM
whats the open command? zexter Linux - General 17 11-02-2003 12:57 AM
whats the command for this. dkc_ace Linux - General 1 12-20-2002 09:55 PM


All times are GMT -5. The time now is 01:38 PM.

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