where is LOCALBASE actually defined?

2012-07-15 Thread Anton Shterenlikht
$ cat Makefile
all:
echo $(LOCALBASE)
$
$ make
echo

$

What do I need to do to use LOCALBASE
in my makefiles?

Thanks

-- 
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
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: where is LOCALBASE actually defined?

2012-07-15 Thread Eitan Adler
On 15 July 2012 14:47, Anton Shterenlikht me...@bristol.ac.uk 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)


-- 
Eitan Adler
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: where is LOCALBASE actually defined?

2012-07-15 Thread Anton Shterenlikht
On Sun, Jul 15, 2012 at 03:06:14PM -0700, Eitan Adler wrote:
 On 15 July 2012 14:47, Anton Shterenlikht me...@bristol.ac.uk 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
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: where is LOCALBASE actually defined?

2012-07-15 Thread Eitan Adler
On 15 July 2012 15:17, Anton Shterenlikht me...@bristol.ac.uk wrote:
 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?

correct. LOCALBASE is a ports tree specific thing.

you could define it yourself as follows:

LOCALBASE?=/usr/local

-- 
Eitan Adler
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org