>>>>> "Stéphane" == Stéphane Genaud <[EMAIL PROTECTED]> writes:

Stéphane> modnam.def : ttimes.f
Stéphane>       echo "       data modnam/'$(datadir)'" > modnam.def
Stéphane> and i need this file to be written before the ttimes.f compiles.

You have a few choices.

One is this:

    BUILT_SOURCES = modnam.def

Another is this:

    ttimes.o: modnam.def

Stéphane> modnam.def : ttimes.f    
Stéphane>       echo "       data modnam/'$(datadir)'" > modnam.def

This won't quite work.  `make' won't know that there is a desired
ordering between modnam.def and ttimes.o, so it might try to build
either one first.

Stéphane> and many other things but i can't tell automake to generate
Stéphane> this rule in the final Makefile.

The contents of your Makefile.am ought to be visible in Makefile.in
(though perhaps in a different order, and with some editing if you use
conditionals).  I'd be suprised if this weren't the case.

Tom

Reply via email to