apps/Makefile: Move APPDIR set to the first and remove APPDIR from command line but ensure TOPDIR/BINDIR are always set in command line.

This commit is contained in:
Xiang Xiao 2019-10-01 11:46:38 -06:00 committed by Gregory Nutt
parent c73af9c3c8
commit 18bd9acd3d
2 changed files with 8 additions and 9 deletions

View file

@ -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)" BINDIR="$(BINDIR)"
endef
$(foreach SDIR, $(SUBDIRS), $(eval $(call SDIR_template,$(SDIR),preconfig)))