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 /make | |
parent | 0e8e4d03ea21082bf7fb64fc08711f951cabb165 (diff) | |
download | erlang-dda051ea1d6f24ae47da4f5fdcd581c4c505b262.tar.gz |
otp: Fix `make TYPE=$TYPE` to work for all types
Diffstat (limited to 'make')
-rw-r--r-- | make/doc.mk | 2 | ||||
-rw-r--r-- | make/otp.mk.in | 3 | ||||
-rw-r--r-- | make/otp_subdir.mk | 6 |
3 files changed, 6 insertions, 5 deletions
diff --git a/make/doc.mk b/make/doc.mk index 9bc36ce86a..36256c1f05 100644 --- a/make/doc.mk +++ b/make/doc.mk @@ -129,7 +129,7 @@ info: @echo "XML_CHAPTER_FILES: $(XML_CHAPTER_FILES)" @echo "BOOK_FILES: $(BOOK_FILES)" -debug opt lcnt: +$(TYPES): clean clean_docs: clean_xml clean_pdf clean_html clean_man clean_chunks rm -rf $(EXTRA_FILES) diff --git a/make/otp.mk.in b/make/otp.mk.in index 2443c71a08..3c31ebec51 100644 --- a/make/otp.mk.in +++ b/make/otp.mk.in @@ -47,7 +47,8 @@ CROSS_COMPILING = @CROSS_COMPILING@ # ---------------------------------------------------- DEFAULT_TARGETS = opt debug release release_docs clean docs -TYPES = @TYPES@ +TYPES = opt debug lcnt valgrind asan gcov +DEFAULT_TYPES = @DEFAULT_TYPES@ FLAVORS = @FLAVORS@ PRIMARY_FLAVOR= @PRIMARY_FLAVOR@ diff --git a/make/otp_subdir.mk b/make/otp_subdir.mk index 6ccf727c75..c62932c8a9 100644 --- a/make/otp_subdir.mk +++ b/make/otp_subdir.mk @@ -19,13 +19,13 @@ # # Make include file for otp -.PHONY: debug opt lcnt release docs release_docs tests release_tests \ - clean depend valgrind asan static_lib +.PHONY: $(TYPES) release docs release_docs tests release_tests \ + clean depend static_lib # # Targets that don't affect documentation directories # -opt debug lcnt release docs release_docs tests release_tests clean depend valgrind asan static_lib xmllint: +$(TYPES) release docs release_docs tests release_tests clean depend static_lib xmllint: @set -e ; \ app_pwd=`pwd` ; \ if test -f vsn.mk; then \ |