File 0179-erts-Fix-make-system-to-pass-TYPE-from-top-level.patch of Package erlang

From d7a742cb421ed24ac37c283dcbd060e52d713f3c Mon Sep 17 00:00:00 2001
From: Lukas Larsson <lukas@erlang.org>
Date: Mon, 18 Mar 2019 17:15:03 +0100
Subject: [PATCH 03/26] 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(+)

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 $$? ; \
-- 
2.16.4

openSUSE Build Service is sponsored by