Add the dirlinks target to some Makefiles. This plugs some wholes open by last chicken-and-egg build fix

This commit is contained in:
Gregory Nutt 2016-07-28 12:00:03 -06:00
parent 256a836a23
commit 28c397b3ce
2 changed files with 7 additions and 2 deletions

View File

@ -76,7 +76,7 @@ BIN = libapps$(LIBEXT)
# Build targets
all: $(BIN)
.PHONY: import install context context_serialize context_rest .depdirs preconfig depend clean distclean
.PHONY: import install dirlinks context context_serialize context_rest .depdirs preconfig depend clean distclean
define MAKE_template
$(Q) $(MAKE) -C $(1) $(2) TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)" BIN_DIR="$(BIN_DIR)"
@ -110,6 +110,9 @@ install: $(BIN_DIR) .install
import:
$(Q) $(MAKE) .import TOPDIR="$(APPDIR)$(DELIM)import"
dirlinks:
$(Q) $(MAKE) -C platform dirlinks TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)"
context_rest: $(foreach SDIR, $(CONFIGURED_APPS), $(SDIR)_context)
context_serialize:

View File

@ -125,9 +125,11 @@ $(PLATFORMDIR): $(TOPDIR)$(DELIM).config
$(Q) $(DIRUNLINK) $(PLATFORMDIR)
$(Q) $(DIRLINK) $(LINKDIR) $(PLATFORMDIR)
dirlinks: $(PLATFORMDIR)
install:
context: $(PLATFORMDIR)
context: dirlinks
# Dependencies