Browse Source

Use DESTDIR when installing hostapd to support cross-compiling

Signed-off-by: Mike Crowe <mac@mcrowe.com>
Mike Crowe 14 years ago
parent
commit
590595edba
1 changed files with 1 additions and 1 deletions
  1. 1 1
      hostapd/Makefile

+ 1 - 1
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 \