>>>>> "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