automake
[Top][All Lists]
Advanced

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

Re: Include directive for all generated Makefile.in


From: Peter Johansson
Subject: Re: Include directive for all generated Makefile.in
Date: Tue, 13 Apr 2010 10:20:40 -0400
User-agent: Thunderbird 2.0.0.19 (X11/20090105)

Hello Xavier,

Xavier MARCELET wrote:
Thanks for the reply, but this is not what I'm looking for.

Lets say that the file "my_include.am" declares a rule to generate documentation :
$cat my_include.am
doc :
   INPUT=. doxygen doxygen.cfg

Now, I wish to include this rule in every Makefile generated from Makefile.in that are themselves generated from Makefile.am.

A simple solution would be to include "my_include.am" in all Makefile.am as follow :

head -n 1 ./src/Makefile.am
   include $(top_srcdir)/my_include.am
head -n 1 ./src/tools/Makefile.am
   include $(top_srcdir)/my_include.am

However, I don't want to add the "include" instruction in the Makefile.am, in fact, I don't want to modify those files at all.

My question is : is there any way to get the same result by modifying another automake's config file, like configure.ac for instance ?

In my experience using Automake's include mechanism is often the best option because automake takes cares of things like dependencies. If that doesn't suit you, you may have better luck here if you explain why it doesn't suit you; if you explain what you wanna accomplish. It makes it easier for people to help.

Cheers,
Peter

--
Peter Johansson

svndigest maintainer, http://dev.thep.lu.se/svndigest
yat maintainer,       http://dev.thep.lu.se/yat





reply via email to

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