automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to tell an extra rule to automake


From: Stéphane Genaud
Subject: How to tell an extra rule to automake
Date: Thu, 07 Jun 2001 12:23:30 +0200

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

[Prev in Thread] Current Thread [Next in Thread]