1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
dnl Handle the --enable-html-doc option.
dnl
dnl The following snippet goes into doc/Makefile.am
dnl ------------------------
dnl CLEANFILES = yourfile.html
dnl
dnl if MAKE_HTML
dnl hdir = @htmldir@
dnl h_DATA = yourfile.html
dnl endif
dnl
dnl SUFFIXES = .html
dnl
dnl .texi.html:
dnl @cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9]
dnl cd $(srcdir) && $(MAKEINFO) --html `echo $< | sed 's,.*/,,'`
dnl ------------------------
dnl
dnl Written by Alexandre Duret-Lutz <duret_g@epita.fr>
AC_DEFUN([adl_ENABLE_HTML_DOC],
[AC_ARG_ENABLE([html-doc],
[AC_HELP_STRING([--enable-html-doc=DIR],
[build and install html documentation])])
if test "${enable_html_doc-no}" != no; then
if test "x$enable_html_doc" = xyes; then
htmldir="$data_dir/doc"
else
htmldir="$enable_html_doc"
fi
AC_SUBST([htmldir])
else
htmldir='\<none\>'
fi
AM_CONDITIONAL(MAKE_HTML, [test "${enable_html_doc-no}" != no])])
|