[PATCH 1/2] Use DESTDIR when installing hostapd to support cross-compiling.

Mike Crowe mac
Wed Jan 5 05:33:07 PST 2011


Signed-off-by: Mike Crowe <mac at mcrowe.com>
---
 hostapd/Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/hostapd/Makefile b/hostapd/Makefile
index a99ebc0..ca031de 100644
--- a/hostapd/Makefile
+++ b/hostapd/Makefile
@@ -765,7 +765,7 @@ verify_config:
 	fi
 
 install: all
-	for i in $(ALL); do cp -f $$i /usr/local/bin/$$i; done
+	for i in $(ALL); do cp -f $$i $(DESTDIR)/usr/local/bin/$$i; done
 
 ../src/drivers/build.hostapd:
 	@if [ -f ../src/drivers/build.wpa_supplicant ]; then \
-- 
1.5.6.5



More information about the Hostap mailing list