Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Dec 2006 16:26:16 -0500
From:      Gary Palmer <gpalmer@freebsd.org>
To:        current@freebsd.org
Subject:   Re: /usr/src/Makefile target to create an 'installed' subtree ?
Message-ID:  <20061203212616.GC53372@in-addr.com>
In-Reply-To: <20061203130148.A16185@xorpc.icir.org>
References:  <20061203130148.A16185@xorpc.icir.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Dec 03, 2006 at 01:01:48PM -0800, Luigi Rizzo wrote:
> For some experiments (with qemu, diskless, jails etc.) i would
> like to build an 'installed' subtree from sources, where by
> 'installed' i mean fully populated including the files in /etc
> 
> I see that the 'installworld' and 'installkernel' targets
> do part of the work.
> 'install' (run after installworld) does another part (manpages ?)
> but i could not find a way to populate /etc . I tried with
> mergemaster and the -m and -D options, but it seems to want a
> 'make' version that matches the source tree.
> Maybe some shell magic involving the following
> 
> 	MAKE=`make -f Makefile -V BINMAKE` \
> 	mergemaster -m /sources_are_here/usr/src/etc -D /destination_is_here
> 
> (with a few `eval` here and there) can do the job, but i wonder
> if there isn't a better option or something already in the
> source tree that does not require mergemaster ?

Check the Makefiles in /usr/src/release

AFAIK releases are the only time that you get everything populated including
/etc

Gary



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