From 28c397b3ce4acf1af1b472f7739848d20e695ab0 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 28 Jul 2016 12:00:03 -0600 Subject: [PATCH] Add the dirlinks target to some Makefiles. This plugs some wholes open by last chicken-and-egg build fix --- Makefile | 5 ++++- platform/Makefile | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 1b580c0da..4093b0ed7 100644 --- a/Makefile +++ b/Makefile @@ -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: diff --git a/platform/Makefile b/platform/Makefile index 07083810e..d41e1c40c 100644 --- a/platform/Makefile +++ b/platform/Makefile @@ -125,9 +125,11 @@ $(PLATFORMDIR): $(TOPDIR)$(DELIM).config $(Q) $(DIRUNLINK) $(PLATFORMDIR) $(Q) $(DIRLINK) $(LINKDIR) $(PLATFORMDIR) +dirlinks: $(PLATFORMDIR) + install: -context: $(PLATFORMDIR) +context: dirlinks # Dependencies