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_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
|
||||||
|
|
Loading…
Reference in a new issue