automake
[Top][All Lists]
Advanced

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

Re: How to tell an extra rule to automake


From: Tom Tromey
Subject: Re: How to tell an extra rule to automake
Date: 07 Jun 2001 11:03:04 -0600

>>>>> "Stéphane" == Stéphane Genaud <address@hidden> 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

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