Re: List all make targets?

2005-07-04 Thread Chuck Swiger

Michael Dexter wrote:

Michael Dexter wrote:
Is there a 'make' flag to list all make targets for any given 
directory containing Makefile* ?


grep ':' Makefile  ...comes pretty close.


Another reader suggested I cat the file... I take it the answer is "no."


The answer is "it's probably not useful".

Make uses implied rules for suffix transformations, so for example there is an 
implied target for foo.o which depends on foo.c, which looks something like:


.c.o:
${CC} ${CFLAGS} -c ${.IMPSRC}

These rules represent a few hundred lines worth of build rules which could be 
applied to any file as needed in order to build things without having these 
rules actually specified in the Makefile itself.


Specifically I am looking for a quick way to see the make targets as 
'make' would accept them while hunting for 'uninstall' and other 
surprises. I see that it gets complicated as i.e. "_legacy" is a 
legitimate target along with "buildworld." More to investigate!


"make -n -d g1 | less"...?  Take a look at the main target and at the "parents" 
target at the top.


--
-Chuck
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: List all make targets?

2005-07-04 Thread Michael Dexter

Michael Dexter wrote:
Is there a 'make' flag to list all make targets for any given 
directory containing Makefile* ?


grep ':' Makefile  ...comes pretty close.


Another reader suggested I cat the file... I take it the answer is 
"no." Specifically I am looking for a quick way to see the make 
targets as 'make' would accept them while hunting for 'uninstall' and 
other surprises. I see that it gets complicated as i.e. "_legacy" is 
a legitimate target along with "buildworld." More to investigate!


It's a brilliant mechanism but I get lost chasing variables that 
may span /usr/src/Makefile.inc1 and /usr/share/mk/ and...


What problem are you trying to solve?


My understanding of the system for the purposes of world reduction 
and custom release engineering. My work is 1/2 way to being an 
informal howto on the subject.


Thanks to all who responded.

Michael.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: List all make targets?

2005-07-04 Thread Chuck Swiger

Michael Dexter wrote:
Is there a 'make' flag to list all make targets for any given directory 
containing Makefile* ?


grep ':' Makefile  ...comes pretty close.


Appreciated!

On the same topic, can anyone recommend an IDE or utility that can help 
me navigate the make hierarchy used by 'build/installworld' and 'release?'


An IDE would simply provide a graphic front end that invokes the make commands 
underneath.  It wouldn't make the process less complex.


It's a brilliant mechanism but I get lost chasing variables that may 
span /usr/src/Makefile.inc1 and /usr/share/mk/ and...


What problem are you trying to solve?  You don't need to read all of that to 
use it, any more than a developer needs to understand each and every header 
file in order to use #include .


--
-Chuck
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: List all make targets?

2005-07-04 Thread Remington L
On 7/4/05, Michael Dexter <[EMAIL PROTECTED]> wrote:
> 
> 
> Hello all,
> 
> I am sure I saw this somewhere and even added it to my notes but
> neither I nor Google can find it for the life of us... or I dreamt
> it...
> 
> Is there a 'make' flag to list all make targets for any given
> directory containing Makefile* ?
> 
> Appreciated!
> 
> On the same topic, can anyone recommend an IDE or utility that can
> help me navigate the make hierarchy used by 'build/installworld' and
> 'release?'
> 
> It's a brilliant mechanism but I get lost chasing variables that may
> span /usr/src/Makefile.inc1 and /usr/share/mk/ and...
> 
> Thanks!
> 
> Michael
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> [EMAIL PROTECTED]"


I assume your talking about make in /usr/src. cat the Makefile and it'll 
tell you
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


List all make targets?

2005-07-04 Thread Michael Dexter


Hello all,

I am sure I saw this somewhere and even added it to my notes but 
neither I nor Google can find it for the life of us... or I dreamt 
it...


Is there a 'make' flag to list all make targets for any given 
directory containing Makefile* ?


Appreciated!

On the same topic, can anyone recommend an IDE or utility that can 
help me navigate the make hierarchy used by 'build/installworld' and 
'release?'


It's a brilliant mechanism but I get lost chasing variables that may 
span /usr/src/Makefile.inc1 and /usr/share/mk/ and...


Thanks!

Michael
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"