The Hermit Hacker wrote:
>
> I have a program that has a .h file that is generated by running a script,
> where that .h file needs to be generated before everything is compiled ...
>
> Reading through the info docs, I found the section on all-local being
> added to Makefile.am, etc, but when I run automake, it looks like:
>
> all: Makefile ${PROGRAMS} all-local
>
> Where I need it as:
>
> all: Makefile all-local ${PROGRAMS}
>
> Problem is I can't find anything that explains how to force an order, and
> searching through a file packages out there that I can think of that uses
> libtool, a few of them show how to use the -local directive, but nothing
> that appears to be the same ...
>
> So, the question is ... how do I go about doing such, assuming that its
> possible?
>
Well, relying on all-local is the wrong thing anyway as a parallel make
will create the all-local at the same time as PROGRAMS. the right thing
is
to add an explicit dependency for each source that relies on the header
like "mysourcefile.c: myheaderfile.h". Another way is via BUILTSOURCES,
but this is not recommended.
Greetings, Stephan
--
It said Windows 95 or better, so in theory Linux should run it
GeorgeH on /.