diff Makefile.am @ 10092:02453ee20140

allow building of docs to be disabled
author John W. Eaton <jwe@octave.org>
date Wed, 13 Jan 2010 03:40:45 -0500
parents 061ea41a3da7
children 9126d71f53aa
line wrap: on
line diff
--- a/Makefile.am	Wed Jan 13 03:00:14 2010 -0500
+++ b/Makefile.am	Wed Jan 13 03:40:45 2010 -0500
@@ -69,7 +69,13 @@
 include m4/module.mk
 
 # Subdirectories in which to run `make all'.
-SUBDIRS = libgnu libcruft liboctave src scripts doc examples test
+SUBDIRS = libgnu libcruft liboctave src scripts @DOCDIR@ examples test
+
+if AMCOND_BUILD_DOCS
+else
+dist-hook:
+	echo "Documentation disabled.  Cannot package distribution!" ; exit 1;
+endif
 
 BUILT_SHELL_FILES = \
   mkoctfile$(SCRIPTS_EXE_SUFFIX) \