aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorGrant Erickson <marathon96@gmail.com>2012-01-29 14:18:22 +0200
committerJouni Malinen <j@w1.fi>2012-01-29 14:18:22 +0200
commitb1117643846bdcd104e04512f84ae131e7e60eb5 (patch)
treeb232b10199ee957e6c830cf3bb7e3adc27c387e5 /wpa_supplicant
parent9013edc300bbe7b3dff552d6cbe2b7d278146f9f (diff)
downloadexternal_wpa_supplicant_8_ti-b1117643846bdcd104e04512f84ae131e7e60eb5.zip
external_wpa_supplicant_8_ti-b1117643846bdcd104e04512f84ae131e7e60eb5.tar.gz
external_wpa_supplicant_8_ti-b1117643846bdcd104e04512f84ae131e7e60eb5.tar.bz2
build: Fix install target parent directory prerequisites
This changes the install target such that parent directories of installed paths area created and each path is only installed on a dependency basis. Signed-off-by: Grant Erickson <marathon96@gmail.com>
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile
index d31678e..f4c0aa0 100644
--- a/wpa_supplicant/Makefile
+++ b/wpa_supplicant/Makefile
@@ -48,9 +48,10 @@ mkconfig:
echo CONFIG_DRIVER_HOSTAP=y >> .config
echo CONFIG_DRIVER_WEXT=y >> .config
-install: all
- mkdir -p $(DESTDIR)$(BINDIR)
- for i in $(ALL); do cp $$i $(DESTDIR)$(BINDIR)/$$i; done
+$(DESTDIR)$(BINDIR)/%: %
+ install -D $(<) $(@)
+
+install: $(addprefix $(DESTDIR)$(BINDIR)/,$(ALL))
$(MAKE) -C ../src install
OBJS = config.o