Hello,

i have a very simple problem that i could manage 
simply wit a Makefile rule, but have been unable
to tell automake to handle this. 
The rule is :

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

and i need this file to be written before the ttimes.f compiles.
I have in my Makefile.am :

bin_PROGRAMS = ttimes
ttimes_SOURCES = 4sm.c ttimes.f

and it compiles well as long as modnam.def exists.

I have tried 

bin_SCRIPTS = modnam.def
modnam.def : ttimes.f    
      echo "       data modnam/'$(datadir)'" > modnam.def

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

Any idea ?
Thanks.
        
-- 
  Stéphane Genaud                                    
   ICPS, Université Louis Pasteur                   
   Pôle API, Bd. S. Brant, F-67400 Illkirch        
   tel : (33)(0)390244542, 0619058113 (SFR)

Reply via email to