Browse Source

doc: fix 'make dist' when latex environment is not found

Even if --disable-build-doc is specified to the configure script, 'make dist'
tries to build the documentation and it miserably fails when the latex
environment (especially pdflatex) is not found. This is because conditional
subdirectories must be handled manually. As specified by the automake
documentation :

"If SUBDIRS contains AC_SUBST variables, DIST_SUBDIRS will not be defined
correctly because Automake doesn't know the possible values of these
variables."'
Samuel Pitoiset 9 years ago
parent
commit
74f23a2b3b
1 changed files with 2 additions and 0 deletions
  1. 2 0
      doc/Makefile.am

+ 2 - 0
doc/Makefile.am

@@ -11,6 +11,8 @@
 
 if BUILD_DOC
 SUBDIRS = doxygen
+else
+DIST_SUBDIRS =
 endif
 
 EXTRA_DIST =    tutorial/hello_world.c \