From feecf18f5eeba1ff02ff4592fa75e8808bb46c13 Mon Sep 17 00:00:00 2001 From: wlemb Date: Sat, 15 Jun 2002 09:32:04 +0000 Subject: Don't produce HTML files if utility programs are missing. * Makefile.in (make_html, make_install_html): New variables. (MDEFINES): Updated. * aclocal.m4 (GROFF_HTML_PROGRAMS): New function to test for HTML utility programs. * configure.ac: Use it. * configure: Regenerated. * doc/Makefile.sub (PROCESSEDEXAMPLEFILES): Move webpage.html to... (HTMLEXAMPLESFILES): This new variable. (EXAMPLESIMAGEFILES): Renamed to... (HTMLEXAMPLEIMAGEFILES): This. (CLEANADD): Add HTMLEXAMPLEFILES. (all): Use `make_html'. (html): New target. (install_data): Use `make_install_html'. Move html stuff to... (install_html): This new target. (uninstall_sub): Updated. --- Makefile.in | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Makefile.in') diff --git a/Makefile.in b/Makefile.in index a0d36a13..0abfc4ba 100644 --- a/Makefile.in +++ b/Makefile.in @@ -189,6 +189,11 @@ man5dir=$(manroot)/man$(man5ext) man7ext=7 man7dir=$(manroot)/man$(man7ext) +# the configure script checks whether all necessary utility programs for +# grohtml are available -- only then we can build the HTML documentation +make_html=@make_html@ +make_install_html=@make_install_html@ + # DEFINES should include the following: # -DHAVE_MMAP if you have mmap() and # -DARRAY_DELETE_NEEDS_SIZE if your C++ doesn't understand `delete []' @@ -346,6 +351,8 @@ MDEFINES= \ "man5dir=$(man5dir)" \ "man7ext=$(man7ext)" \ "man7dir=$(man7dir)" \ + "make_html=$(make_html)" \ + "make_install_html=$(make_install_html)" \ "mkinstalldirs=$(mkinstalldirs)" \ "tmac_wrap=$(tmac_wrap)" \ "sys_tmac_prefix=$(sys_tmac_prefix)" \ -- cgit v1.2.1