changeset 4045:b908aaa4080a

[project @ 2002-08-15 17:38:54 by jwe]
author jwe
date Thu, 15 Aug 2002 17:38:55 +0000
parents 9678c5526190
children 7787c144d5d9
files src/ChangeLog src/Makefile.in src/mk-oct-links
diffstat 3 files changed, 18 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Thu Aug 15 16:54:56 2002 +0000
+++ b/src/ChangeLog	Thu Aug 15 17:38:55 2002 +0000
@@ -1,5 +1,13 @@
 2002-08-15  John W. Eaton  <jwe@bevo.che.wisc.edu>
 
+	* Makefile.in (DLD_DEF_FILES): New macro.
+	(DEF_5): Delete.
+	(DEF_4): Now only includes $(SOURCES).
+	(DEF_FILES): Append $(DLD_DEF_FILES) here.
+	(stamp-oct-links): Pass $(DLD_DEF_FILES) to mk-oct-links instead
+	of a list of source files.
+	* mk-oct-links: Work on .df files instead of .cc files.
+
 	* parse.y (case_list): Allow it to be empty.
 
 	* ov.cc, ov.h (octave_value::int_vector_value): New function.
--- a/src/Makefile.in	Thu Aug 15 16:54:56 2002 +0000
+++ b/src/Makefile.in	Thu Aug 15 17:38:55 2002 +0000
@@ -172,12 +172,13 @@
 
 DEFUN_PATTERN = "^[ \t]*DEFU(N|N_DLD|N_TEXT|N_MAPPER)[ \t]*\\("
 
-DEF_5 := $(SOURCES) $(DLD_SRC)
-DEF_4 := $(addprefix $(srcdir)/, $(DEF_5))
+DLD_DEF_FILES := $(patsubst %.cc, %.df, $(DLD_XSRC))
+
+DEF_4 := $(addprefix $(srcdir)/, $(SOURCES))
 DEF_3 := $(notdir $(shell egrep -l $(DEFUN_PATTERN) $(DEF_4)))
 DEF_2 := $(patsubst %.y, %.df, $(DEF_3))
 DEF_1 := $(patsubst %.l, %.df, $(DEF_2))
-DEF_FILES := $(patsubst %.cc, %.df, $(DEF_1))
+DEF_FILES := $(patsubst %.cc, %.df, $(DEF_1)) $(DLD_DEF_FILES)
 
 DEFVAR_PATTERN = "^[ \t]*DEF(VAR|CONS(T|TX))[ \t]*\\("
 
@@ -256,7 +257,7 @@
 
 stamp-oct-links: $(OCT_FILES)
 	if [ -n "$(OCT_FILES)" ]; then \
-	  $(srcdir)/mk-oct-links . $(addprefix $(srcdir)/, $(DLD_SRC)); \
+	  $(srcdir)/mk-oct-links . $(DLD_DEF_FILES); \
 	fi
 	touch stamp-oct-links
 
--- a/src/mk-oct-links	Thu Aug 15 16:54:56 2002 +0000
+++ b/src/mk-oct-links	Thu Aug 15 17:38:55 2002 +0000
@@ -7,7 +7,8 @@
 
 # The first non-option arg is taken as the directory where the .oct
 # files are installed.  The remaining arguments should be the list of
-# source files that were used to create the .oct files.
+# .df files corresponding to the source files that were used to
+# create the .oct files.
 
 print_only=false
 if [ $1 = "-p" ]; then
@@ -19,9 +20,9 @@
 shift
 
 for f in "$@"; do
-  base=`basename $f | sed 's/\.cc$//'`
-  fcns=`grep '^ *DEFUN_DLD' $f |\
-        sed -e 's/DEFUN_DLD *( *//' -e 's/ *,.*$//' |\
+  base=`basename $f | sed 's/\.df$//'`
+  fcns=`grep '^ *XDEFUN_DLD_INTERNAL' $f |\
+        sed -e 's/XDEFUN_DLD_INTERNAL *( *//' -e 's/ *,.*$//' |\
         sort -u`
   if [ -n "$fcns" ]; then
     for n in $fcns; do