Ensure at least one command if no dependencies
authorTanzinul Islam <tanzinul.islam@gmail.com>
Mon, 16 Nov 2020 22:52:44 +0000 (22:52 +0000)
committerDmitry Belyavskiy <beldmit@gmail.com>
Mon, 19 Apr 2021 09:05:54 +0000 (11:05 +0200)
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)

Configurations/windows-makefile.tmpl

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