[Top][All Lists]

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

Re: Include directive for all generated

From: Xavier MARCELET
Subject: Re: Include directive for all generated
Date: Tue, 13 Apr 2010 09:38:36 +0200
User-agent: Thunderbird (X11/20100317)

Ralf Wildenhues wrote:
Hello Xavier,

* Xavier MARCELET wrote on Mon, Apr 12, 2010 at 03:58:33PM CEST:
I have an include file (named '') that I want to append
in all the of my project
as if it was included in all my
I don't want to edit all the files (even through a script)

Is there any simple way to do that ?

Not really.  But if you already have one such include, and want to
include another fragment, then you should be able to add that to the
first fragment.  Note however that paths do not work file-recursively,
so the inner include should use a path starting in $(top_srcdir).

Hope that helps.

Thanks for the reply, but this is not what I'm looking for.

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

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

A simple solution would be to include "" in all as follow :

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

However, I don't want to add the "include" instruction in the, 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 for instance ?


reply via email to

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