[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: auto-generated source files and automake
From: |
dchiaramello |
Subject: |
Re: auto-generated source files and automake |
Date: |
Fri, 2 Dec 2011 08:00:25 -0800 (PST) |
Well.. I will anto-answer my question.
My Makefile.am is now the following:
bin_PROGRAMS = prog
prog_SOURCES = foo.c bar.c
BUILT_SOURCES = foo.c
CLEANFILES = $(prog_SOURCES)
foo.c : sourcelist.txt
build_sources sourcelist.txt
Apparently, the elements in <BUILT_SOURCES> will be processed before making
checks for bin_PROGRAMS.
Problem is solved!
Daniel
dchiaramello wrote:
>
> Hello.
>
> I am confronted to a problem related to automake, and auto-generated
> source file dependencies.
>
> I have a program, requiring foo.c and bar.c to build:
>
> bin_PROGRAMS = prog
> prog_SOURCES = foo.c bar.c
>
> But foo.c and bar.c are NOT available when the make is done - they are
> build with the following command:
> build_sources sourcelist.txt
>
> If I have the following rule:
> foo.c : sourcelist.txt
> build_sources sourcelist.txt
>
> it will complain that it has no rule to build bar.c...
>
> How could this been solved?
>
> Thanks for your attention,
> Daniel
>
> PS: of course, this is a greatly simplified case...
>
--
View this message in context:
http://old.nabble.com/auto-generated-source-files-and-automake-tp32901057p32903201.html
Sent from the Gnu - Automake - General mailing list archive at Nabble.com.