bug-automake
[Top][All Lists]
Advanced

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

Re: RFE: support per-program noinst_HEADERS


From: Ralf Wildenhues
Subject: Re: RFE: support per-program noinst_HEADERS
Date: Wed, 12 Mar 2008 20:41:24 +0100
User-agent: Mutt/1.5.17+20080114 (2008-01-14)

* Chris Pickett wrote on Wed, Mar 12, 2008 at 08:34:34PM CET:
> Ralf Wildenhues wrote:
>> So why not this?
>>
>> noinst_HEADERS =
>> if PROG1
>> noinst_HEADERS += ...
>> else
>> noinst_HEADERS += ...
>> endif
>>
>> if PROG2
>> noinst_HEADERS += ...
>> endif
>
> I'm sorry, I don't really understand... how do I set PROG1 and PROG2?  
> What I want is this: per-test program sets of dependencies so that if a  
> file in the library is touched, only those test programs that are  
> possibly dependent upon it need to be recompiled.  I don't want every  
> test program dependent upon the same noinst_HEADERS.  Can you elaborate?

Oh, ok.  Like this?

if PROG1
prog1_headers = ...
else
prog1_headers =

endif
...
noinst_HEADERS = $(prog1_headers) ...

IOW: just rename all *_HEADERS to *_headers, that way automake will
ignore them.  And list all *_headers in noinst_HEADERS.

>> I agree that the warning 
>>
>>>>> `noinst_prog_HEADERS' is used but `noinst_progdir' is undefined
>>
>> is weird.  I'm mostly arguing to avoid having to do the work of fixing
>> the warning.  ;-)
>
> Yeah, if it's a lot of work, forget it.

No, it's probably not.

Cheers,
Ralf




reply via email to

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