[Top][All Lists]

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

Re: running config.status in subdirs

From: Andre Caldas
Subject: Re: running config.status in subdirs
Date: Thu, 16 Dec 2004 09:58:30 +0900
User-agent: Mozilla Thunderbird 0.7 (X11/20040615)


>    subdir=<..>
>    Makefile :
>    cd $(top_builddir) && ./config.status $(subdir)/Makefile
> where  "subdir"  is the relative path name. For instance,
> in "src/" subdir would be "src".
> My "problem"  is that I have to set "subdir" manually for
> each - but I would prefer that autoconf (resp.
> config.status) computes the value for me.

You don't need to set this manually. You can use pwd, for instance. Or you could use the preset variable abs_builddir. (I never tried it, though)

> I'm not sure whether autoconf can already do this - I do
> not think so.

I think it already does what you want:
- When I change the "autoreconf is called and configure is called"
- When I change some, the Makefile is rebuilt.

Andre Caldas.

reply via email to

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