From owner-freebsd-hackers Fri Sep 22 11:38:55 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id LAA13434 for hackers-outgoing; Fri, 22 Sep 1995 11:38:55 -0700 Received: from bubba.tribe.com ([205.184.207.7]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id LAA13429 for ; Fri, 22 Sep 1995 11:38:52 -0700 Received: (from archie@localhost) by bubba.tribe.com (8.6.11/8.6.9) id LAA05635 for freebsd-hackers@freebsd.org; Fri, 22 Sep 1995 11:38:14 -0700 From: Archie Cobbs Message-Id: <199509221838.LAA05635@bubba.tribe.com> Subject: /usr/src/Makefile targets To: freebsd-hackers@freebsd.org Date: Fri, 22 Sep 1995 11:38:14 -0700 (PDT) X-Mailer: ELM [version 2.4 PL24] Content-Type: text Content-Length: 1918 Sender: owner-hackers@freebsd.org Precedence: bulk [ resending of previously lost email; if you got this before i apologize ] Hi... we've decided to move some development machines to FreeBSD (yaaa!). What I'd like to do is to develop an "in-house" customized FreeBSD distribution based on the 2.0.5-RELEASE distribution (eventually to be updated to 2.1). That is, I'd like to be able to add/modify files in the /usr/src hierarchy and make a distribution ("2.0.5-LOCAL" ?) that would sit on an internal machine. That way, when we install a new machine: o The installation would go *much* faster (Ethernet vs 56K) o The installed system would be already fully customized for our local site (eg, /etc/sysconfig). Of course, I get lots of experience playing with FreeBSD in the process. :-) I'm trying to understand all of the "make" targets in /usr/src/Makefile. Specifically, what precisely do these do? make world make release make distribute ...others? Also, what about environment variables? I've already figured out that DESTDIR needs to be set if you want to avoid nuking your system with "make world". But after doing "make world" it didn't seem to install the /etc files ... apparently "make distribute" is needed for this (?) DISTDIR = where the distribution goes (?) I'd like be able to both create a distribution set (for ftp) as well as intstall a complete, unbundled filesystem (eg, on a mounted disk /mnt which would then be stuck on some other machine). Finally, any tips for avoiding recompiling the whole universe every time a small change is made to some file? Surely the FreeBSD team has dealt with this issue. Any other unwritten rules/conventions? I would be happy to prepare a "how-to" / FAQ on this, if you can stand my questions... :-) Thanks, -Archie _______________________________________________________________________________ Archie L. Cobbs, archie@tribe.com * Tribe Computer Works http://www.tribe.com