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>
This commit is contained in:
Grant Erickson 2012-01-29 14:18:22 +02:00 committed by Jouni Malinen
parent 9013edc300
commit b111764384

View file

@ -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