From owner-freebsd-questions@FreeBSD.ORG Sat Sep 17 09:18:55 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 AC73816A41F for ; Sat, 17 Sep 2005 09:18:55 +0000 (GMT) (envelope-from freebsd-questions@auscert.org.au) Received: from titania.auscert.org.au (gw.auscert.org.au [203.5.112.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2484543D46 for ; Sat, 17 Sep 2005 09:18:54 +0000 (GMT) (envelope-from freebsd-questions@auscert.org.au) Received: from app.auscert.org.au (app [10.0.1.192]) by titania.auscert.org.au (8.12.10/8.12.10) with ESMTP id j8H9I7BV042442 for ; Sat, 17 Sep 2005 19:18:07 +1000 (EST) Received: from app.auscert.org.au (localhost.auscert.org.au [127.0.0.1]) by app.auscert.org.au (8.13.1/8.13.1) with ESMTP id j8H9IsQ7056622 for ; Sat, 17 Sep 2005 19:18:54 +1000 (EST) (envelope-from freebsd-questions@auscert.org.au) Message-Id: <200509170918.j8H9IsQ7056622@app.auscert.org.au> To: freebsd-questions@freebsd.org From: Joel Hatton Dcc: Date: Sat, 17 Sep 2005 19:18:54 +1000 Subject: Environment setting for make X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Sep 2005 09:18:55 -0000 Hi, I've been setting the DESTDIR environment var when installing into a jail, either by first performing: setenv DESTDIR /usr/jail/example and then installing world, or by running: make installworld DESTDIR=/usr/jail/example Both methods work ok. However, I've been studying share/mk/bsd.obj.mk with the intention of creating separate build environments too. From the section below, my second method is obviously insufficient: # MAKEOBJDIRPREFIX Specifies somewhere other than /usr/obj to root the object # tree. Note: MAKEOBJDIRPREFIX is an *environment* variable # and works properly only if set as an environment variable, # not as a global or command line variable! # # E.g. use `env MAKEOBJDIRPREFIX=/somewhere/obj make' However, and at this risk of exposing my inexperience and just plain old sounding foolish, how does this method of setting MAKEOBJDIRPREFIX differ from: setenv MAKEOBJDIRPREFIX /somewhere/obj Also, in the example above, is the backquote '`' intended, or is that for compatibility for something like tex? thanks, -- Joel Hatton -- Security Analyst | Hotline: +61 7 3365 4417 AusCERT - Australia's national CERT | Fax: +61 7 3365 7031 The University of Queensland | WWW: www.auscert.org.au Qld 4072 Australia | Email: auscert@auscert.org.au