diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile index d31678e4d..f4c0aa0f5 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