From owner-freebsd-questions@FreeBSD.ORG Sat May 15 03:31:27 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A89DF16A4CE for ; Sat, 15 May 2004 03:31:27 -0700 (PDT) Received: from mail.broadpark.no (mail.broadpark.no [217.13.4.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id F0E5543D45 for ; Sat, 15 May 2004 03:31:26 -0700 (PDT) (envelope-from henrik.w.lund@broadpark.no) Received: from broadpark.no (52.80-202-129.nextgentel.com [80.202.129.52]) by mail.broadpark.no (Postfix) with ESMTP id 5009F1468; Sat, 15 May 2004 12:31:40 +0200 (MEST) Message-ID: <40A5F17C.3000308@broadpark.no> Date: Sat, 15 May 2004 12:31:24 +0200 From: Henrik W Lund User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040410 X-Accept-Language: no, en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20040514190156.F3B2E16A4D1@hub.freebsd.org> In-Reply-To: <20040514190156.F3B2E16A4D1@hub.freebsd.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: android.66@volja.net Subject: Re: The correct way to run "make" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 May 2004 10:31:27 -0000 >> ------------------------------------------------------------------------ >> >> Subject: >> Re: The correct way to run "make" >> From: >> Android66 >> Date: >> Fri, 14 May 2004 19:50:26 +0200 >> To: >> Antoine Jacoutot >> >> To: >> Antoine Jacoutot >> CC: >> freebsd-questions@freebsd.org >> >> >> Often you need to specify values, like for postgresql: >> >> make PREFIX=/some/other/dir >> >> And here's another question. I always use the same options for make, >> make install and make clean, ie: >> >> make PREFIX=/some/other/dir >> make PREFIX=/some/other/dir install >> make PREFIX=/some/other/dir clean >> >> This is because I noticed that some ports (I forgot which one I was >> having this experience with) need these options in order to install >> and clean correctly as they generate the package name based on the >> options specified. Is what I'm doing OK or is there another, >> beter/simpler/easier way to do it? Greetings! If there are options you use every single time you run make, put them in /etc/make.conf. If, in the above example, that PREFIX was only meant for postgresql, just hand make all the targets on one line, instead of dividing it up into three. Instead of: make make install make clean do: make install clean That will perform the same task, with less typing required. :-) -Henrik W Lund