From d7a742cb421ed24ac37c283dcbd060e52d713f3c Mon Sep 17 00:00:00 2001 From: Lukas Larsson Date: Mon, 18 Mar 2019 17:15:03 +0100 Subject: erts: Fix make system to pass TYPE from top level This makes it possible to do: make release TYPE=debug from ERL_TOP and it will build the correct things. --- erts/Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'erts/Makefile') diff --git a/erts/Makefile b/erts/Makefile index 60c70b6a2c..e62c896170 100644 --- a/erts/Makefile +++ b/erts/Makefile @@ -129,9 +129,13 @@ makefiles: .PHONY: release release: +ifeq ($(TYPE),) for t in $(TYPES); do \ ( cd emulator && $(MAKE) release TYPE=$$t ) || exit $$?; \ done +else + ( cd emulator && $(MAKE) release TYPE=$(TYPE) ) || exit $$?; +endif $(V_at)for d in $(ERTSDIRS) $(XINSTDIRS); do \ if test -d $$d; then \ ( cd $$d && $(MAKE) $@ ) || exit $$? ; \ -- cgit v1.2.3