[Top][All Lists]

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

Re: converting to subdir-objects

From: Bert Wesarg
Subject: Re: converting to subdir-objects
Date: Sun, 8 Mar 2015 20:12:31 +0100

On Sun, Mar 8, 2015 at 7:33 PM, Bob Friesenhahn
<address@hidden> wrote:
> On Sun, 8 Mar 2015, Bert Wesarg wrote:
>>>> So if A/ contains:
>>>> foo_SRCS = ... $(srcdir)/../foo/bar.c
>>> As far as I am aware, it is wise/required that source paths be
>>> subordinate
>>> to the location (no .. bits).
>> If that would really be a requirement now or with subdir-objects, I
>> would say its a regression.
> I checked the current Automake manual and am not able to find any text which
> says that a subdirectory needs to be a subdirectory of where the Makefile
> resides.  What is a subdirectory anyway?  The generated Makefile would
> include per-source-file target specifications outside of the directory where
> the Makefile resides.
> Perhaps the ability to use this successfully depends on the implementation
> of the VPATH and target resolution support in the make program (and possibly
> make program version) that your project is specifically targeting.
> I can not imagine 'make dist' or 'make distcheck' working properly if source
> files are not subordinate to the directory containing Makefile. How is 'tar'
> supposed to work?

I think we must distinguish between a and
'sub' 'sub' may be a recusive in the same
'' project, or in a sub-'' project. And
referencing source files outside of a's tree but
inside a the's tree should than also let 'make
dist' work, shouldn't it?

> Harlan's posting here was due to Automake not working as he expected for
> files which are not in a subdirectory so maybe it does not work.

Harlan, is your A/ a from a, and thus all source files subordinate from this

reply via email to

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