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:
parent
9013edc300
commit
b111764384
1 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue