changeset 9961:dbbec33d14f8

Final patch to enable autotools VPATH builds of documentation
author Rik <rdrider0-list@yahoo.com>
date Thu, 10 Dec 2009 12:26:12 -0800
parents 5f3c10ecb150
children 9bd50882cd1c
files scripts/ChangeLog scripts/Makefile.am src/ChangeLog src/Makefile.am
diffstat 4 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog
+++ b/scripts/ChangeLog
@@ -1,3 +1,8 @@
+2009-12-09  Rik <octave@nomad.inbox5.com>
+
+	* Makefile.am: Copy DOCSTRINGS from srcdir to builddir if it does not
+	exist.  Enables VPATH builds.
+
 2009-12-08  Petr Mikulik <mikulik@physics.muni.cz>
 
 	* plot/gnuplot_drawnow.m: Prune prompt lines from dumb terminal output.
--- a/scripts/Makefile.am
+++ b/scripts/Makefile.am
@@ -329,6 +329,7 @@
 all-local: $(GEN_FCN_FILES) $(PKG_ADD_FILES) DOCSTRINGS
 
 DOCSTRINGS: mkdoc $(FCN_FILES) $(GEN_FCN_FILES) gethelp$(BUILD_EXEEXT) 
+	@cp -a --update $(srcdir)/$@ $@ ; exit 0;
 	$(srcdir)/mkdoc "$(srcdir)" $(FCN_FILES) -- $(GEN_FCN_FILES) > $@-t
 	$(simple_move_if_change_rule)
 
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
+2009-12-09  Rik <octave@nomad.inbox5.com>
+
+	* Makefile.am: Copy DOCSTRINGS from srcdir to builddir if it does not
+	exist.  Enables VPATH builds.
+
 2009-12-10  Jaroslav Hajek  <highegg@gmail.com>
 
 	* ov-dld-fcn.h (octave_dld_function::get_shlib): New method.
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -628,6 +628,7 @@
 	mv $@-t $@
 
 DOCSTRINGS: gendoc$(BUILD_EXEEXT)
+	@cp -a --update $(srcdir)/$@ $@ ; exit 0;
 	./gendoc > $@-t
 	$(simple_move_if_change_rule)