# HG changeset patch # User John W. Eaton # Date 1254409810 14400 # Node ID 0896714301e4b7238999c1052999370a56fe6dee # Parent c929f09457b774bf9a6106825c9851d28bc19bf2 script/Makefile.in: tweak rules for building DOCSTRINGS diff -r c929f09457b7 -r 0896714301e4 scripts/ChangeLog --- a/scripts/ChangeLog Thu Oct 01 14:07:06 2009 +0200 +++ b/scripts/ChangeLog Thu Oct 01 11:10:10 2009 -0400 @@ -1,3 +1,9 @@ +2009-10-01 John W. Eaton + + * Makefile.in (plot/gnuplot_binary.m): New rule. + (DOCSTRINGS): Depend on plot/gnuplot_binary.m. + (ALL_M_FILES): Define with =, not :=. + 2009-10-01 Jaroslav Hajek * geometry/griddata.m: Fix handling vector xi, yi. diff -r c929f09457b7 -r 0896714301e4 scripts/Makefile.in --- a/scripts/Makefile.in Thu Oct 01 14:07:06 2009 +0200 +++ b/scripts/Makefile.in Thu Oct 01 11:10:10 2009 -0400 @@ -41,7 +41,9 @@ M_FILE_DIRS := $(srcdir) . endif -ALL_M_FILES := $(shell find $(M_FILE_DIRS) -name '*.m' -print) +## Define this with =, not := so that the generated plot/gnuplot_binary.m +## file will be included in the list when it is available. +ALL_M_FILES = $(shell find $(M_FILE_DIRS) -name '*.m' -print) DISTFILES = $(addprefix $(srcdir)/, Makefile.in ChangeLog $(SOURCES) \ configure.ac configure mkinstalldirs mkdoc mkpkgadd gethelp.cc \ @@ -79,7 +81,11 @@ $(MAKE) -C $@ all .PHONY: $(SUBDIRS) -DOCSTRINGS: gethelp$(BUILD_EXEEXT) mkdoc $(ALL_M_FILES) +## Kluge alert: +plot/gnuplot_binary.m: + $(MAKE) -C plot $(notdir $@) + +DOCSTRINGS: plot/gnuplot_binary.m gethelp$(BUILD_EXEEXT) mkdoc $(ALL_M_FILES) $(srcdir)/mkdoc $(ALL_M_FILES) > $@.t mv $@.t $@