Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Nov 2000 19:32:33 -0800 (PST)
From:      Peter Jones <pjones@pmade.org>
To:        Allan Dib <dib.allan.l@edumail.vic.gov.au>
Cc:        questions@FreeBSD.ORG
Subject:   Re: Installing a port
Message-ID:  <Pine.BSF.4.21.0011191927250.47420-100000@pmade.org>
In-Reply-To: <3a182715.ca.0@webcentral.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
They both do the same thing.

make install

will run make(1) and it will atempt to do the install but notice
that the software has not yet been build. So, it will do that first
then return and do the install.

make && make install

will tell make only to do the build, since you are running it
without a target, and if make exits without any errors your shell
will run it again with the install target and make will just do
the install. Thus, that last command is really running make twice.

There are many other targets that you can use, like

make fetch

will fetch the source code for the port, and

make patch

will apply the FreeBSD patches, both of these targets are called
when you run 'make' automaticly.

On Mon, 20 Nov 2000, Allan Dib wrote:

> Hiya everyone,
> 
> I wonder if anyone can answer what is probably a very basic question. I've been
> reading some BSD documentation and often it will say in regard to installing
> a port something like "simply change /usr/ports/the-port-you-want-to-install
> and run 'make install'". I have always used the command "make install". However
> lately I've seen a lot of documentation say to use the command 'make && make
> install' what's the difference and which should one use??
> 
> Best Regards,
> 
> Allan.
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
> 

-- 
.......................................................................
: Peter Jones                        :      Unix Geek - Four Wheeling :
: pjones@pmade.org                   :     Code Writing - Jesus Freak :
:....................................:................................:
:echo er|perl -0160 -pe ';$;=ord$/;s;^;"\U$/".chr($\;-11).chr$\;+4;e;':
:.....................................................................:



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0011191927250.47420-100000>