Use ?:= as the assignement operator for PREFIX.
authorAndre Noll <maan@systemlinux.org>
Mon, 2 Nov 2009 13:45:15 +0000 (14:45 +0100)
committerAndre Noll <maan@systemlinux.org>
Mon, 2 Nov 2009 13:45:15 +0000 (14:45 +0100)
This creates a simply expanded variable which is more suitable for
the PREFIX variable.

Makefile

index c61dff7..78c9b16 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -19,7 +19,7 @@ CPPFLAGS += -I/usr/local/include
 
 LDFLAGS += -L/usr/local/lib
 
-PREFIX ?= /usr/local
+PREFIX ?:= /usr/local
 ifeq "$(origin CC)" "default"
        CC := gcc
 endif