[Top][All Lists]

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

Re: automake strips GNU make "else/endif" conditionals

From: Akim Demaille
Subject: Re: automake strips GNU make "else/endif" conditionals
Date: 07 Aug 2001 12:14:11 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Academic Rigor)

| >>>>> "Peter" == Peter J Farley <address@hidden> writes:
| Peter> Does automake disallow using GNU make conditionals in rules?
| Not really, but they aren't supported either.  Sometimes they "work"
| if you indent them.  Try adding a leading space.
| My thinking has been that one of automake's primary goals is to
| generate portable Makefiles.  So supporting a nonportable feature
| isn't very important.
| That's been the overriding factor since supporting it is, I think, not
| actually very easy.  For one thing, automake splits macro assignments
| and targets into two different sections of  So we would
| have to change how is generated for this to work reliably.
| Of course, like everything, this is open to debate.  Perhaps it is
| worthwhile to expend the effort to make this work.  I still don't
| think it is that important, though, so at least right now I don't plan
| to spend time on it.

My own opinion, FWIW, is that Automake should stop using the same
syntax as Make, and move to %, which is now its signature.





Of course there is the problem of backward compatibility.  I propose


%end verbatim

Peter, anyway, if I were you, I would copy what Jim does for the
fileutils: i.e., use GNUmakefile for GNU Make extensions.  Indeed,
that's a better way of leaving Automake do its job: enforcing

reply via email to

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