Ensure at least one command if no dependencies

C++Builder's `make.exe` complains if a target has no dependencies (e.g.
after variable expansion) and no lines of commands. Ensure there is a
blank command line if the dependency list is entirely made of variables.

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/13540)
This commit is contained in:
Tanzinul Islam 2020-11-16 22:52:44 +00:00 committed by Dmitry Belyavskiy
parent 8557bdde48
commit 830cd025b1

View File

@ -388,11 +388,15 @@ PROCESSOR= {- $config{processor} -}
build_docs: build_html_docs build_docs: build_html_docs
build_html_docs: $(HTMLDOCS1) $(HTMLDOCS3) $(HTMLDOCS5) $(HTMLDOCS7) build_html_docs: $(HTMLDOCS1) $(HTMLDOCS3) $(HTMLDOCS5) $(HTMLDOCS7)
@
build_generated: $(GENERATED_MANDATORY) build_generated: $(GENERATED_MANDATORY)
@
build_libs_nodep: $(LIBS) {- join(" ",map { platform->sharedlib_import($_) // () } @{$unified_info{libraries}}) -} build_libs_nodep: $(LIBS) {- join(" ",map { platform->sharedlib_import($_) // () } @{$unified_info{libraries}}) -}
@
build_modules_nodep: $(MODULES) build_modules_nodep: $(MODULES)
@
build_programs_nodep: $(PROGRAMS) $(SCRIPTS) build_programs_nodep: $(PROGRAMS) $(SCRIPTS)
@
# Kept around for backward compatibility # Kept around for backward compatibility
build_apps build_tests: build_programs build_apps build_tests: build_programs