From f5dd9811dc7d7a76e04631f3a6792858ac62c8a8 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 12 May 2017 07:50:03 -0600 Subject: [PATCH] =?UTF-8?q?Bitbucket=20Issue=205,=20apps=20build=20system:?= =?UTF-8?q?=20The=20previous=20patch=20wasn't=20complete,=20it=20was=20jus?= =?UTF-8?q?t=20idea=20how=20to=20resolve=20issue.=20=20Please,=20find=20at?= =?UTF-8?q?tached=20issue5.patch=20to=20resolve=20it.=20It=20can=20be=20ap?= =?UTF-8?q?plied=20on=20top=20current=20apps/master.=20From=20Artur=20M?= =?UTF-8?q?=C4=85drzak.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Directory.mk | 2 +- Makefile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Directory.mk b/Directory.mk index 82bb719c7..b0d475778 100644 --- a/Directory.mk +++ b/Directory.mk @@ -46,7 +46,7 @@ all: nothing define SDIR_template $(1)_$(2): - $(Q) cd $(1) $(MAKE) $(2) TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)" + $(Q) cd $(1) && $(MAKE) $(2) TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)" endef $(foreach SDIR, $(SUBDIRS), $(eval $(call SDIR_template,$(SDIR),preconfig))) diff --git a/Makefile b/Makefile index 4093b0ed7..e5cdd6d72 100644 --- a/Makefile +++ b/Makefile @@ -79,13 +79,13 @@ all: $(BIN) .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)" + $(Q) cd $(1) && $(MAKE) $(2) TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)" BIN_DIR="$(BIN_DIR)" endef define SDIR_template $(1)_$(2): - $(Q) $(MAKE) -C $(1) $(2) TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)" BIN_DIR="$(BIN_DIR)" + $(Q) cd $(1) && $(MAKE) $(2) TOPDIR="$(TOPDIR)" APPDIR="$(APPDIR)" BIN_DIR="$(BIN_DIR)" endef