aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2013-10-24 18:07:03 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2013-10-24 18:07:03 -0700
commit94719a1e8c45a208f73cda79f14fbb2dc5b69423 (patch)
tree5a8baedd0a9260ff3965d85101bb34c123cdef79
parent6a9d93baa16d409d0afc0fc1356fb9a680d4c734 (diff)
parent280a501f0925c6d72a969acd0f80966b66d5edb6 (diff)
downloadandroid_external_wpa_supplicant_8-94719a1e8c45a208f73cda79f14fbb2dc5b69423.tar.gz
android_external_wpa_supplicant_8-94719a1e8c45a208f73cda79f14fbb2dc5b69423.tar.bz2
android_external_wpa_supplicant_8-94719a1e8c45a208f73cda79f14fbb2dc5b69423.zip
Merge "hostapd: Make install path configurable"
-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 \