makefile: don't hardcore install utility location
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 31 Jul 2009 06:48:03 +0000 (08:48 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 31 Jul 2009 06:48:03 +0000 (08:48 +0200)
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/Makefile.in

index 3dcdfe104fb750d56bb60a1451acd40a79e3abe3..0829e8f3bb09eaea78792c0fca9329083a862862 100644 (file)
@@ -181,7 +181,7 @@ ifeq ($(BR2_STRIP_none),y)
 TARGET_STRIP=true -Not_stripping
 STRIPCMD=$(TARGET_STRIP)
 endif
-INSTALL=/usr/bin/install
+INSTALL=$(shell which install || type -p install)
 FLEX:=$(shell which flex || type -p flex)
 BISON:=$(shell which bison || type -p bison)