Date: Mon, 31 Jan 2000 10:36:33 -0800 (PST) From: "Rodney W. Grimes" <freebsd@gndrsh.dnsmgr.net> To: peter@netplex.com.au (Peter Wemm) Cc: abial@webgiro.com (Andrzej Bialecki), current@FreeBSD.ORG Subject: Re: make installworld broken??? Message-ID: <200001311836.KAA93874@gndrsh.dnsmgr.net> In-Reply-To: <20000131162318.4CA241CD7@overcee.netplex.com.au> from Peter Wemm at "Feb 1, 2000 00:23:18 am"
next in thread | previous in thread | raw e-mail | index | archive | help
> "Rodney W. Grimes" wrote:
> > Good analysis deleted...
> > 
> > > src/usr.bin/xinstall could probably have been named src/usr.bin/install,
> > > but PROG has to be xinstall regardless.  I guess they kept the two as
> > > xinstall for consistancy and in case there were other gotcha's like this.
> > 
> > But you forgot what happens if you have a ``file'' named install:
> > 
> > cd /tmp
> > mkdir install
> > make install
> > 
> > Now you know the real reason the directory is called ``xinstall''.
> 
> Ahh yes, of course.  'cd src/usr.bin; make install'  would fail. :-)
Actually it use to silently do the wrong thing... nothing at all that is :-)
It doesn't anymore since the .mk system has a special internal target
that deals with the fact that src/usr.bin is simply a directory that has to
be iterated over:
Orbit.hpc1.com:root{101}# cd /usr/src/usr.bin
Orbit.hpc1.com:root{102}# mkdir install
Orbit.hpc1.com:root{103}# make install
===> apply
install -c -s -o root -g wheel -m 555   apply /usr/bin
install -c -o root -g wheel -m 444 apply.1.gz  /usr/share/man/man1
===> at
install -c -s -o root -g wheel -m 4555   at /usr/bin
...
-- 
Rod Grimes - KD7CAX @ CN85sl - (RWG25)               rgrimes@gndrsh.dnsmgr.net
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200001311836.KAA93874>
