Commit b8ad6fd0 authored by yoogx's avatar yoogx

* Adjustments for distcheck in case no doc is built

parent 1aeb6ecf
......@@ -2,7 +2,7 @@ AUTOMAKE_OPTIONS = no-dependencies
ACLOCAL_AMFLAGS = -I support
CLEANFILES = config-stamp
SUBDIRS = support tools src share @DOC_DIR@
SUBDIRS = support tools src share doc
DIST_SUBDIRS = $(SUBDIRS) examples
# Force the installation before running the testsuite
......
......@@ -170,16 +170,16 @@ AC_SUBST(CYGPATH_U)
AC_CHECK_PROGS(TEXI2HTML, texi2html)
DOC_DIR=
DOC_TARGETS=docs
AC_ARG_ENABLE(doc,
[ --enable-doc Build documentation [default=no]],
[if [[ "$enableval" = "yes" ]]; then
DOC_DIR=doc
DOC_TARGETS=docs
fi],
[])
AC_SUBST(DOC_DIR)
AC_SUBST(DOC_TARGETS)
###############################################################
# Force the installation prefix to be equal to the Ocarina one
......
......@@ -87,7 +87,9 @@ polyorb_hi_ada_ug_TEXINFOS = $(GUIDE_TEXIFILES)
SUFFIXES = .ada .ads .adb .aadl .texi .sed .pdf .html
all-local: $(GUIDE_TEXIFILES) $(GUIDE).html $(GUIDE).pdf
docs: $(GUIDE_TEXIFILES) $(GUIDE).html $(GUIDE).pdf
all-local: @DOC_TARGETS@
# The 3 target above are active only in developper mode. In package
# mode, once the files in doc/ have been packaged, they are not
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment