automake
[Top][All Lists]
Advanced

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

Re: allowing users to add source files without rerunning the autotools?


From: Stefano Lattarini
Subject: Re: allowing users to add source files without rerunning the autotools?
Date: Sat, 21 Jan 2012 10:14:45 +0100

On 01/20/2012 09:10 PM, Paul Smith wrote:
> On Fri, 2012-01-20 at 20:35 +0100, Stefano Lattarini wrote:
>>>> What automake does for source files it knows about is just "include
>>>> $(DEPDIR)/srcfile.Po" (apparently "include" is considered portable
>>>> make?).
>>>
>>> It's not considered portable make.
>>>
>> Still, it's worth noting that it works with every make implementation
>> I usually test automake with:
> 
> FYI, I believe that POSIX has approved adding an "include" command to
> the make standard.  I can't remember for sure.
>
It seems this is the case:

  <http://pubs.opengroup.org/onlinepubs/9699919799/>

An excerpt:

  ``If the word include appears at the beginning of a line and is
    followed by one or more <blank> characters, the string formed
    by the remainder of the line shall be processed as follows to
    produce a pathname ... [SNIP] ... The contents of the file
    specified by the pathname shall be read and processed as if they
    appeared in the makefile in place of the include line.''

> I know that POSIX standard != portable, necessarily, but it's a start.
> 

Regards,
  Stefano



reply via email to

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