From 06621ba387f8d45e0c273f77f18573eb52cd66b8 Mon Sep 17 00:00:00 2001 From: Pauli Date: Fri, 21 May 2021 15:24:57 +1000 Subject: configurations: update template makefiles to install documentation images Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/15399) --- Configurations/windows-makefile.tmpl | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) (limited to 'Configurations/windows-makefile.tmpl') diff --git a/Configurations/windows-makefile.tmpl b/Configurations/windows-makefile.tmpl index a7123f6a5e..632e5ce4b5 100644 --- a/Configurations/windows-makefile.tmpl +++ b/Configurations/windows-makefile.tmpl @@ -145,6 +145,14 @@ MISC_SCRIPTS={- && $unified_info{attributes}->{scripts}->{$_}->{misc} } @{$unified_info{scripts}}) -} +IMAGEDOCS1={- our @IMAGEDOCS1 = @{$unified_info{imagedocs}->{man1}}; + join(" ", @IMAGEDOCS1) -} +IMAGEDOCS3={- our @IMAGEDOCS3 = @{$unified_info{imagedocs}->{man3}}; + join(" ", @IMAGEDOCS3) -} +IMAGEDOCS5={- our @IMAGEDOCS5 = @{$unified_info{imagedocs}->{man5}}; + join(" ", @IMAGEDOCS5) -} +IMAGEDOCS7={- our @IMAGEDOCS7 = @{$unified_info{imagedocs}->{man7}}; + join(" ", @IMAGEDOCS7) -} HTMLDOCS1={- our @HTMLDOCS1 = @{$unified_info{htmldocs}->{man1}}; join(" ", @HTMLDOCS1) -} HTMLDOCS3={- our @HTMLDOCS3 = @{$unified_info{htmldocs}->{man3}}; @@ -595,7 +603,7 @@ install_programs: install_runtime_libs build_programs uninstall_runtime: -install_html_docs: build_html_docs +install_html_docs: install_image_docs build_html_docs @if "$(INSTALLTOP)"=="" ( echo INSTALLTOP should not be empty & exit 1 ) @echo *** Installing HTML docs @"$(PERL)" "$(SRCDIR)\util\mkdir-p.pl" "$(INSTALLTOP)\html\man1" @@ -611,7 +619,25 @@ install_html_docs: build_html_docs @"$(PERL)" "$(SRCDIR)\util\copy.pl" $(BLDDIR)\doc\html\man7\*.html \ "$(INSTALLTOP)\html\man7" -uninstall_html_docs: +uninstall_html_docs: uninstall_image_docs + +install_image_docs: + @if "$(INSTALLTOP)"=="" ( echo INSTALLTOP should not be empty & exit 1 ) + @echo *** Installing HTML images + @"$(PERL)" "$(SRCDIR)\util\mkdir-p.pl" "$(INSTALLTOP)\html\man1\img" + @"$(PERL)" "$(SRCDIR)\util\mkdir-p.pl" "$(INSTALLTOP)\html\man3\img" + @"$(PERL)" "$(SRCDIR)\util\mkdir-p.pl" "$(INSTALLTOP)\html\man5\img" + @"$(PERL)" "$(SRCDIR)\util\mkdir-p.pl" "$(INSTALLTOP)\html\man7\img" + @"$(PERL)" "$(SRCDIR)\util\copy.pl" $(SRCDIR)\doc\man1\img\*.png \ + "$(INSTALLTOP)\html\man1\img" + @"$(PERL)" "$(SRCDIR)\util\copy.pl" $(SRCDIR)\doc\man3\img\*.png \ + "$(INSTALLTOP)\html\man3\img" + @"$(PERL)" "$(SRCDIR)\util\copy.pl" $(SRCDIR)\doc\man5\img\*.png \ + "$(INSTALLTOP)\html\man5\img" + @"$(PERL)" "$(SRCDIR)\util\copy.pl" $(SRCDIR)\doc\man7\img\*.png \ + "$(INSTALLTOP)\html\man7\img" + +uninstall_image_docs: # Helper targets ##################################################### -- cgit v1.2.3