Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Sep 1995 11:38:14 -0700 (PDT)
From:      Archie Cobbs <archie@tribe.com>
To:        freebsd-hackers@freebsd.org
Subject:   /usr/src/Makefile targets
Message-ID:  <199509221838.LAA05635@bubba.tribe.com>

next in thread | raw e-mail | index | archive | help

 [ 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



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