automake
[Top][All Lists]
Advanced

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

Re: Aw: Re: Generating 'cat' pages on make install


From: Benoit Sigoure
Subject: Re: Aw: Re: Generating 'cat' pages on make install
Date: Tue, 6 Nov 2007 06:23:19 +0100

On Nov 6, 2007, at 5:22 AM, Ralf Wildenhues wrote:

* Ralf Wildenhues wrote on Tue, Nov 06, 2007 at 05:11:13AM CET:
* Benoit Sigoure wrote on Tue, Nov 06, 2007 at 01:31:42AM CET:

--Makefile.am-------------------------------------------
bin_PROGRAMS = foo
foo_SOURCES = foo.c
BUILT_SOURCES = foo.c

foo.c:
        echo 'int main(){return 0;}' >$@

Your foo.c gets distributed because it's in foo_SOURCES.

And BTW your foo.c would not need to be a built source anyway,
as there is already a rule that depends upon it (the .c.o one).
Typically, BUILT_SOURCES are needed for headers upon which no
explicit dependencies exist at the first time the package is
built.

Hehe, true x 2.  Sorry about that ;o

--
Benoit Sigoure aka Tsuna
EPITA Research and Development Laboratory


Attachment: PGP.sig
Description: This is a digitally signed message part


reply via email to

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