swrh/dotmk — Issue #2: PREFIX variable declared in build-local.mk is not used
Author: rtesti
Created: 2012-01-06 13:27:04+00:00
State: open

After follow the instructions to modify the PREFIX variable:
" $ echo PREFIX=/opt/foobar >> mk/build-local.mk" (https://github.com/swrh/dotmk)

The variable defined in build-local.mk is not used on final make.

This happens because the variable PREFIX defined in build.mk overloads the local value.

Can be solved editing build.mk where PREFIX is defined:
in the line:
PREFIX=	/usr/local

change to:
ifndef PREFIX
PREFIX=	/usr/local