From owner-freebsd-questions@FreeBSD.ORG Sun Jul 15 22:17:46 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 48107106564A for ; Sun, 15 Jul 2012 22:17:46 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from dirg.bris.ac.uk (dirg.bris.ac.uk [137.222.10.102]) by mx1.freebsd.org (Postfix) with ESMTP id EFC908FC08 for ; Sun, 15 Jul 2012 22:17:45 +0000 (UTC) Received: from ncsc.bris.ac.uk ([137.222.10.41]) by dirg.bris.ac.uk with esmtp (Exim 4.72) (envelope-from ) id 1SqX8L-0000wA-8f; Sun, 15 Jul 2012 23:17:45 +0100 Received: from mech-cluster241.men.bris.ac.uk ([137.222.187.241]) by ncsc.bris.ac.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1SqX8K-00077T-BW; Sun, 15 Jul 2012 23:17:44 +0100 Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1]) by mech-cluster241.men.bris.ac.uk (8.14.5/8.14.5) with ESMTP id q6FMHip1026414; Sun, 15 Jul 2012 23:17:44 +0100 (BST) (envelope-from mexas@bris.ac.uk) Received: (from mexas@localhost) by mech-cluster241.men.bris.ac.uk (8.14.5/8.14.5/Submit) id q6FMHiAg026413; Sun, 15 Jul 2012 23:17:44 +0100 (BST) (envelope-from mexas@bris.ac.uk) X-Authentication-Warning: mech-cluster241.men.bris.ac.uk: mexas set sender to mexas@bris.ac.uk using -f Date: Sun, 15 Jul 2012 23:17:43 +0100 From: Anton Shterenlikht To: Eitan Adler Message-ID: <20120715221743.GA26377@mech-cluster241.men.bris.ac.uk> Mail-Followup-To: Eitan Adler , freebsd-questions@freebsd.org References: <20120715214758.GA26300@mech-cluster241.men.bris.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: freebsd-questions@freebsd.org Subject: Re: where is LOCALBASE actually defined? 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: Sun, 15 Jul 2012 22:17:46 -0000 On Sun, Jul 15, 2012 at 03:06:14PM -0700, Eitan Adler wrote: > On 15 July 2012 14:47, Anton Shterenlikht wrote: > > $ cat Makefile > > all: > > echo $(LOCALBASE) > > $ > > $ make > > echo > > easier way to test is "make -V LOCALBASE" > > > What do I need to do to use LOCALBASE > > in my makefiles? > > You need to include "bsd.port.mk" (found in /usr/ports/Mk) I though LOCALBASE has meaning outside of the ports system too. Clearly I was wrong. So, if I happen not to have the ports tree, I cannot use LOCALBASE in my makefiles, right? -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 331 5944 Fax: +44 (0)117 929 4423