comparison Makefile.am @ 14432:e053d1622f4e

build: Don't build DOCSTRINGS files when --disable-docs specified. * Makefile.am, scripts/Makefile.am, src/Makefile.am: Use AMCOND blocks to disable unnecessary documentation building when --disable-docs specified.
author Rik <octave@nomad.inbox5.com>
date Sun, 04 Mar 2012 14:42:19 -0800
parents 72c96de7a403
children af953acc055d
comparison
equal deleted inserted replaced
14431:f22a9555aa69 14432:e053d1622f4e
68 include m4/module.mk 68 include m4/module.mk
69 69
70 # Subdirectories in which to run `make all'. 70 # Subdirectories in which to run `make all'.
71 SUBDIRS = libgnu libcruft liboctave src scripts @DOCDIR@ examples test 71 SUBDIRS = libgnu libcruft liboctave src scripts @DOCDIR@ examples test
72 72
73 if AMCOND_BUILD_DOCS 73 if ! AMCOND_BUILD_DOCS
74 else
75 dist-hook: 74 dist-hook:
76 echo "Documentation disabled. Cannot package distribution!" ; exit 1; 75 echo "Documentation disabled. Cannot package distribution!" ; exit 1;
77 endif 76 endif
78 77
79 BUILT_SOURCES = run-octave 78 BUILT_SOURCES = run-octave
117 else \ 116 else \
118 echo "Installing .gdbinit from version at $<" ; \ 117 echo "Installing .gdbinit from version at $<" ; \
119 cp $< $@; \ 118 cp $< $@; \
120 fi 119 fi
121 120
121 if AMCOND_BUILD_DOCS
122 AUTHORS BUGS INSTALL.OCTAVE: 122 AUTHORS BUGS INSTALL.OCTAVE:
123 $(MAKE) -C doc/interpreter ../../$@ 123 $(MAKE) -C doc/interpreter ../../$@
124 endif
124 .PHONY: AUTHORS BUGS INSTALL.OCTAVE 125 .PHONY: AUTHORS BUGS INSTALL.OCTAVE
125 126
126 ChangeLog: 127 ChangeLog:
127 (cd $(srcdir); hg log --style=build-aux/changelog.tmpl --prune=b0e60ad4ae26 --only-branch=`hg branch`; echo ""; echo "See the files in the directory etc/OLD-ChangeLogs for changes before 2011-04-19") > $@.t 128 (cd $(srcdir); hg log --style=build-aux/changelog.tmpl --prune=b0e60ad4ae26 --only-branch=`hg branch`; echo ""; echo "See the files in the directory etc/OLD-ChangeLogs for changes before 2011-04-19") > $@.t
128 mv $@.t $@ 129 mv $@.t $@