summaryrefslogtreecommitdiff
path: root/lib/megaco/src
diff options
context:
space:
mode:
authorLukas Larsson <lukas@erlang.org>2022-01-04 17:44:08 +0100
committerLukas Larsson <lukas@erlang.org>2022-01-21 10:30:25 +0100
commitdda051ea1d6f24ae47da4f5fdcd581c4c505b262 (patch)
tree0fb13319f4d24bdd54b3935ee9484af3cf8919fb /lib/megaco/src
parent0e8e4d03ea21082bf7fb64fc08711f951cabb165 (diff)
downloaderlang-dda051ea1d6f24ae47da4f5fdcd581c4c505b262.tar.gz
otp: Fix `make TYPE=$TYPE` to work for all types
Diffstat (limited to 'lib/megaco/src')
-rw-r--r--lib/megaco/src/app/Makefile4
-rw-r--r--lib/megaco/src/binary/Makefile4
-rw-r--r--lib/megaco/src/engine/Makefile4
-rw-r--r--lib/megaco/src/flex/Makefile.in4
-rw-r--r--lib/megaco/src/tcp/Makefile4
-rw-r--r--lib/megaco/src/text/Makefile4
-rw-r--r--lib/megaco/src/udp/Makefile4
7 files changed, 14 insertions, 14 deletions
diff --git a/lib/megaco/src/app/Makefile b/lib/megaco/src/app/Makefile
index ab45548099..156614bcda 100644
--- a/lib/megaco/src/app/Makefile
+++ b/lib/megaco/src/app/Makefile
@@ -74,8 +74,8 @@ ERL_COMPILE_FLAGS += \
# ----------------------------------------------------
# Targets
# ----------------------------------------------------
-debug:
- @${MAKE} TYPE=debug opt
+$(filter-out opt, $(TYPES)):
+ @${MAKE} TYPE=$@ opt
opt: $(TARGET_FILES) $(APP_TARGET) $(APPUP_TARGET)
diff --git a/lib/megaco/src/binary/Makefile b/lib/megaco/src/binary/Makefile
index 9e33fe3ae5..26c2c1b6b0 100644
--- a/lib/megaco/src/binary/Makefile
+++ b/lib/megaco/src/binary/Makefile
@@ -100,8 +100,8 @@ ERL_COMPILE_FLAGS += \
# ----------------------------------------------------
# Targets
# ----------------------------------------------------
-debug:
- @${MAKE} TYPE=debug opt
+$(filter-out opt, $(TYPES)):
+ @${MAKE} TYPE=$@ opt
opt: prebuild $(TARGET_FILES)
diff --git a/lib/megaco/src/engine/Makefile b/lib/megaco/src/engine/Makefile
index 869b516b05..3aa562b8e3 100644
--- a/lib/megaco/src/engine/Makefile
+++ b/lib/megaco/src/engine/Makefile
@@ -74,8 +74,8 @@ ERL_COMPILE_FLAGS += \
$(TARGET_FILES): $(BEHAVIOUR_TARGET_FILES)
-debug:
- @${MAKE} TYPE=debug opt
+$(filter-out opt, $(TYPES)):
+ @${MAKE} TYPE=$@ opt
opt: $(TARGET_FILES)
diff --git a/lib/megaco/src/flex/Makefile.in b/lib/megaco/src/flex/Makefile.in
index cd409fa54f..250ceed039 100644
--- a/lib/megaco/src/flex/Makefile.in
+++ b/lib/megaco/src/flex/Makefile.in
@@ -187,9 +187,9 @@ endif
# ----------------------------------------------------
ifeq ($(ENABLE_MEGACO_FLEX_SCANNER),true)
-debug opt: $(TARGET_FILES) $(C_TARGETS) solibs
+$(TYPES): $(TARGET_FILES) $(C_TARGETS) solibs
else
-debug opt: $(TARGET_FILES)
+$(TYPES): $(TARGET_FILES)
endif
clean:
diff --git a/lib/megaco/src/tcp/Makefile b/lib/megaco/src/tcp/Makefile
index d07db3fa4b..9968a1b655 100644
--- a/lib/megaco/src/tcp/Makefile
+++ b/lib/megaco/src/tcp/Makefile
@@ -67,8 +67,8 @@ ERL_COMPILE_FLAGS += \
# ----------------------------------------------------
# Targets
# ----------------------------------------------------
-debug:
- @${MAKE} TYPE=debug opt
+$(filter-out opt, $(TYPES)):
+ @${MAKE} TYPE=$@ opt
opt: $(TARGET_FILES)
diff --git a/lib/megaco/src/text/Makefile b/lib/megaco/src/text/Makefile
index bb5f80403b..33d9dd03c4 100644
--- a/lib/megaco/src/text/Makefile
+++ b/lib/megaco/src/text/Makefile
@@ -81,8 +81,8 @@ endif
# ----------------------------------------------------
# Targets
# ----------------------------------------------------
-debug:
- @${MAKE} TYPE=debug opt
+$(filter-out opt, $(TYPES)):
+ @${MAKE} TYPE=$@ opt
opt: $(TARGET_FILES)
diff --git a/lib/megaco/src/udp/Makefile b/lib/megaco/src/udp/Makefile
index 028a63e98e..bc74473eab 100644
--- a/lib/megaco/src/udp/Makefile
+++ b/lib/megaco/src/udp/Makefile
@@ -66,8 +66,8 @@ ERL_COMPILE_FLAGS += \
# ----------------------------------------------------
# Targets
# ----------------------------------------------------
-debug:
- @${MAKE} TYPE=debug opt
+$(filter-out opt, $(TYPES)):
+ @${MAKE} TYPE=$@ opt
opt: $(TARGET_FILES)