diff options
author | Lukas Larsson <lukas@erlang.org> | 2022-01-04 17:44:08 +0100 |
---|---|---|
committer | Lukas Larsson <lukas@erlang.org> | 2022-01-21 10:30:25 +0100 |
commit | dda051ea1d6f24ae47da4f5fdcd581c4c505b262 (patch) | |
tree | 0fb13319f4d24bdd54b3935ee9484af3cf8919fb /lib/inets/examples | |
parent | 0e8e4d03ea21082bf7fb64fc08711f951cabb165 (diff) | |
download | erlang-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/Makefile | 4 | ||||
-rw-r--r-- | lib/inets/examples/server_root/Makefile | 2 |
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: |