aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/Makefile
diff options
context:
space:
mode:
authorSteve Kondik <shade@chemlab.org>2013-11-07 22:49:49 -0800
committerSteve Kondik <shade@chemlab.org>2013-11-07 22:49:49 -0800
commitb38f0593f59a3973dcea351341fee133122b21d1 (patch)
treeadc46f70ba699e60f35d4e962d1b7c614aedce9b /hostapd/Makefile
parentdf1b44455368d305d40299c6393f4d6b5b4b28a6 (diff)
parent0b621177b23952a4574f3cbf160bb36e4d370532 (diff)
downloadandroid_external_wpa_supplicant_8-stable/cm-10.2.tar.gz
android_external_wpa_supplicant_8-stable/cm-10.2.tar.bz2
android_external_wpa_supplicant_8-stable/cm-10.2.zip
Merge branch 'jb_mr2' of git://codeaurora.org/platform/external/wpa_supplicant_8 into cm-10.2cm-10.2.1cm-10.2.0stable/cm-10.2cm-10.2
Diffstat (limited to 'hostapd/Makefile')
-rw-r--r--hostapd/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/hostapd/Makefile b/hostapd/Makefile
index 8404e0cb..6e422a9e 100644
--- a/hostapd/Makefile
+++ b/hostapd/Makefile
@@ -6,6 +6,8 @@ ifndef CFLAGS
CFLAGS = -MMD -O2 -Wall -g
endif
+export BINDIR ?= /usr/local/sbin/
+
CFLAGS += -I../src
CFLAGS += -I../src/utils
@@ -848,9 +850,10 @@ verify_config:
exit 1; \
fi
-install: all
- mkdir -p $(DESTDIR)/usr/local/bin
- for i in $(ALL); do cp -f $$i $(DESTDIR)/usr/local/bin/$$i; done
+$(DESTDIR)$(BINDIR)/%: %
+ install -D $(<) $(@)
+
+install: $(addprefix $(DESTDIR)$(BINDIR)/,$(ALL))
../src/drivers/build.hostapd:
@if [ -f ../src/drivers/build.wpa_supplicant ]; then \