Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Apr 2014 20:19:11 +0200
From:      Jilles Tjoelker <jilles@stack.nl>
To:        Ian Lepore <ian@FreeBSD.org>
Cc:        src-committers@FreeBSD.org, svn-src-all@FreeBSD.org, Dimitry Andric <dim@FreeBSD.org>, svn-src-head@FreeBSD.org, "Justin T. Gibbs" <gibbs@scsiguy.com>, Warner Losh <imp@bsdimp.com>
Subject:   Re: svn commit: r263778 - in head: bin lib lib/clang sbin share/mk usr.bin usr.sbin
Message-ID:  <20140424181911.GA43270@stack.nl>
In-Reply-To: <1398363246.61646.73.camel@revolution.hippie.lan>
References:  <201403262230.s2QMUdH6021943@svn.freebsd.org> <AA90F6B0-3A7A-473D-82C2-CFDFD263E9AC@gmail.com> <20140327181245.GA69977@stack.nl> <7A86F5E9-DBE9-4D3F-B166-C02F8386B722@FreeBSD.org> <1398086131.1124.371.camel@revolution.hippie.lan> <A3C5D651-D1A4-46AF-900A-6D019AD2D39C@bsdimp.com> <EA0A7D4D-2F55-4372-8825-BE907B127CBA@scsiguy.com> <1398363246.61646.73.camel@revolution.hippie.lan>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Apr 24, 2014 at 12:14:06PM -0600, Ian Lepore wrote:
> On Thu, 2014-04-24 at 11:17 -0600, Justin T. Gibbs wrote:
> > Why wouldn’t we fix these with explicit subdir dependencies (e.g:
> > subdira: subdirb)?  I’m pretty sure I had this working with a hacked
> > up bsd.subdir.mk at a previous job, but my memory is hazy.

> I couldn't think of a way to do that, because the directory itself isn't
> the dependency.  That is, whether one directory has a newer/older
> timestamp than the other isn't a function of the build process.  The
> fact that someone else mentioned inserting .WAIT into the list is
> something I took as a confirmation that the regular dependency mechanism
> wouldn't work (so maybe I didn't think about it hard enough).

You can add dependencies between the targets generated by bsd.subdir.mk:
${target}_subdir_${subdir}. This will probably be more verbose in the
individual Makefiles than .WAIT, though.

-- 
Jilles Tjoelker



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140424181911.GA43270>