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_HOSTAP=y >> .config
echo CONFIG_DRIVER_WEXT=y >> .config echo CONFIG_DRIVER_WEXT=y >> .config
install: all $(DESTDIR)$(BINDIR)/%: %
mkdir -p $(DESTDIR)$(BINDIR) install -D $(<) $(@)
for i in $(ALL); do cp $$i $(DESTDIR)$(BINDIR)/$$i; done
install: $(addprefix $(DESTDIR)$(BINDIR)/,$(ALL))
$(MAKE) -C ../src install $(MAKE) -C ../src install
OBJS = config.o OBJS = config.o