[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Shell comments in make rules
From: |
Stefano Lattarini |
Subject: |
Re: Shell comments in make rules |
Date: |
Tue, 16 Nov 2010 20:41:03 +0100 |
User-agent: |
KMail/1.13.3 (Linux/2.6.30-2-686; KDE/4.4.4; i686; ; ) |
On Tuesday 16 November 2010, Ralf Wildenhues wrote:
> * Stefano Lattarini wrote on Tue, Nov 16, 2010 at 08:28:02PM CET:
> > On Tuesday 16 November 2010, Ralf Wildenhues wrote:
> > > * Stefano Lattarini wrote on Tue, Nov 16, 2010 at 08:11:11PM CET:
> > > > On Tuesday 16 November 2010, Ralf Wildenhues wrote:
> > > >
> > > > > > But even if it doesn't, shouldn't the comment in question be
> > > > > > consired
> > > > > > a shell comment anyway? If that's not the case, well, I'd regard
> > > > > > this
> > > > > > behaviour as a severe bug in the OSF make implementation.
> > > > >
> > > > > Yes, and it is quite well documented in
> > > > > info Autoconf 'Comments in Make Rules'
> > > > But that only says:
> > > > "Some make treat anything starting with a tab as a command for the
> > > > current rule, even if the tab is immediately followed by a #."
> > > > which is not relvant for the current situation.
> > >
> > > Of course it is. It means that you cannot put comments anywhere
> > > in a makefile recipe command.
> > Hmm... No, IMVHO it means that *starting* a command in a make recipe
> > with a `#' is not portable.
>
> That's not how I understand it. At least not in conjunction with the
> previous sentence, which is about as clear as it can get:
>
> Never put comments in a rule.
Hmpf, I don't know I missed that! That's pretty clear indeed.
Thanks and sorry for the noise,
Stefano
Re: Testsuite failures on Tru64 OSF 5.1, Ralf Wildenhues, 2010/11/15
- Re: Testsuite failures on Tru64 OSF 5.1, Stefano Lattarini, 2010/11/15
- backcompat5.test: avoid '##'-style comments inside recipe commands. (was: Testsuite failures on Tru64 OSF 5.1), Ralf Wildenhues, 2010/11/16
- Shell comments in make rules (was: backcompat5.test: avoid '##'-style comments inside recipe commands), Stefano Lattarini, 2010/11/16
- Re: Shell comments in make rules (was: backcompat5.test: avoid '##'-style comments inside recipe commands), Ralf Wildenhues, 2010/11/16
- Re: Shell comments in make rules, Stefano Lattarini, 2010/11/16
- Re: Shell comments in make rules, Ralf Wildenhues, 2010/11/16
- Re: Shell comments in make rules,
Stefano Lattarini <=
Spurious failures of some silent*.test tests when cc != gcc (was: Testsuite failures on Tru64 OSF 5.1), Stefano Lattarini, 2010/11/17
Testsuite failures on Solaris 2.10 on SPARC (was: testsuite results from master), Stefano Lattarini, 2010/11/14
Re: testsuite results from master, Stefano Lattarini, 2010/11/14
Testsuite failures on HP-UX 11.23 (was: Re: testsuite results from master), Stefano Lattarini, 2010/11/14