help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: 3 dumb questions


From: PATTON, BILLY \(SBCSI\)
Subject: RE: 3 dumb questions
Date: Wed, 19 Apr 2006 08:12:18 -0500

Thanks :)

> -----Original Message-----
> From: John Graham-Cumming [mailto:address@hidden On 
> Behalf Of John Graham-Cumming
> Sent: Wednesday, April 19, 2006 8:11 AM
> To: PATTON, BILLY (SBCSI)
> Cc: address@hidden
> Subject: Re: 3 dumb questions
> 
> 
> PATTON, BILLY (SBCSI) wrote:
> > 1.  Must .PHONY begin in column 1 ?
> > 2.  Must a target begin in column 1?
> > 3.  Is leading space ignored ? (on the make side of syntax)
> > 
> > What I would like to do, for readability, I like indention :)
> > 
> > ifeq blabla
> > 
> >   .PHONY : test t_a t_b
> > 
> >   test : t_a t_b
> > 
> >   t_a :
> > 
> >   t_b :
> > 
> > endif
> 
> No, no, yes.
> 
> Try this out:
> 
>   .PHONY : test t_a t_b
> 
>    test : t_a t_b
>        @echo Making $@
> 
>    t_a :
>        @echo Making $@
> 
>    t_b :
>        @echo Making $@
> 
> The only gotcha I can see here is that the lines that start with tab 
> have to start with tab.  i.e. you can't do space tab 
> @command, and vice 
> cersa.  Basically, you need to respect tab's meaning.
> 
> Apart from that you can indent with spaces if you feel like it.
> 
> John.
> 
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]