summaryrefslogtreecommitdiff
path: root/lib/inets/examples
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/inets/examples
parent0e8e4d03ea21082bf7fb64fc08711f951cabb165 (diff)
downloaderlang-dda051ea1d6f24ae47da4f5fdcd581c4c505b262.tar.gz
otp: Fix `make TYPE=$TYPE` to work for all types
Diffstat (limited to 'lib/inets/examples')
-rw-r--r--lib/inets/examples/httpd_load_test/Makefile4
-rw-r--r--lib/inets/examples/server_root/Makefile2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/inets/examples/httpd_load_test/Makefile b/lib/inets/examples/httpd_load_test/Makefile
index 8b1b654593..94b8d4b04a 100644
--- a/lib/inets/examples/httpd_load_test/Makefile
+++ b/lib/inets/examples/httpd_load_test/Makefile
@@ -77,8 +77,8 @@ ERL_COMPILE_FLAGS += \
# ----------------------------------------------------
# Targets
# ----------------------------------------------------
-debug:
- @${MAKE} TYPE=debug opt
+$(filter-out opt, $(TYPES)):
+ @${MAKE} TYPE=$@ opt
opt: $(TARGET_FILES)
diff --git a/lib/inets/examples/server_root/Makefile b/lib/inets/examples/server_root/Makefile
index d11389f0a7..08dbe5817a 100644
--- a/lib/inets/examples/server_root/Makefile
+++ b/lib/inets/examples/server_root/Makefile
@@ -163,7 +163,7 @@ ERL_COMPILE_FLAGS +=
# Targets
# ----------------------------------------------------
-debug opt:
+$(TYPES):
clean: