Hi Ralf,

On Sun, Oct 10, 2010 at 10:04 PM, Ralf Wildenhues
<ralf.wildenh...@gmx.de> wrote:
>> > $ for module in `./posix-modules`; do grep '^BUILT_SOURCES += \$(.*_H)$' 
>> > modules/$module; done
>>
>> Just to be completely clear, the BUILT_SOURCES in Makefile.am is now
>> overloaded.  Not only does it mean (to automake anyway) that the
>> source gets built first, but also that it defines a header that is to
>> be installed for libposix.
>
> You could easily fix that by having a variable posix_headers, adding
> headers there, and letting gnulib-tool add
>  BUILT_SOURCES += $(posix_headers)
>
> to save you duplication.

Once the $(posix_headers) is computed, the rest is, indeed, easy.
So, if you've got an easy way to compute $(posix_headers), then I'm
all ears.  :)

Reply via email to