From owner-freebsd-current@FreeBSD.ORG Sun Dec 3 21:01:57 2006 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8E6B816A40F for ; Sun, 3 Dec 2006 21:01:57 +0000 (UTC) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (xorpc.icir.org [192.150.187.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9CF2943CA3 for ; Sun, 3 Dec 2006 21:01:28 +0000 (GMT) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (localhost [127.0.0.1]) by xorpc.icir.org (8.12.11/8.13.6) with ESMTP id kB3L1mmJ016327; Sun, 3 Dec 2006 13:01:48 -0800 (PST) (envelope-from rizzo@xorpc.icir.org) Received: (from rizzo@localhost) by xorpc.icir.org (8.12.11/8.12.3/Submit) id kB3L1mPX016326; Sun, 3 Dec 2006 13:01:48 -0800 (PST) (envelope-from rizzo) Date: Sun, 3 Dec 2006 13:01:48 -0800 From: Luigi Rizzo To: current@freebsd.org Message-ID: <20061203130148.A16185@xorpc.icir.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i Cc: Subject: /usr/src/Makefile target to create an 'installed' subtree ? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Dec 2006 21:01:57 -0000 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 ? thanks luigi