From patchwork Thu Jan 5 07:07:40 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: build: fix install target parent directory prerequisites From: Grant Erickson X-Patchwork-Id: 134435 Message-Id: <1325747260-31656-1-git-send-email-marathon96@gmail.com> To: hostap@lists.shmoo.com, Jouni Malinen Date: Wed, 4 Jan 2012 23:07:40 -0800 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 --- wpa_supplicant/Makefile | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile index 0832f10..7426aa6 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