From bug-octave-request Fri May 21 12:50:05 1993 Subject: Re: bug report? From: John Eaton To: simpson at ptolemy dot arc dot nasa dot gov Cc: bug-octave Date: Fri, 21 May 93 12:50:01 EDT : Dear blackhole: I'm sorry I didn't answer your previous message sooner -- I'm just one guy and don't always have time to respond to each bug reports, though I certainly do pay attention to all of them. : There seems to be a problem with the Makefile in ./libcruft. The : make log file indicates it's archiving FORTRAN source whose behavior : appears to be governed by the following lines in ./libcruft/Makefile Yes. This will be fixed in 0.72. Here's the ChangeLog entry and the new code for libcruft/Makefile.in is appended below. ::::::::: ChangeLog ::::::::: Wed May 5 10:45:39 1993 John W. Eaton (jwe at schoch dot che dot utexas dot edu) * libcruft/Makefile.in (CRUFT_OBJ): Strip $(srcdir)/ and convert from .f to .o in two steps since some versions of GNU make strip the leading ./ from the output of $(wildcard), causing my pattern match to fail if compiling in the source tree. :::::::::::::::::::: libcruft/Makefile.in :::::::::::::::::::: # List of the directories that contain Fortran source. Simply copying # a new .f file into one of these directories is sufficient to have it # added to libcruft.a. If you add a new directory here, you also need # generate a new configure script (edit configure.in and run autoconf). CRUFT_DIRS = blas dassl fftpack fsqp lapack linpack minpack misc \ npsol odepack qpsol quadpack ranlib villad SUBDIRS = $(CRUFT_DIRS) DISTFILES = Makefile.in Makerules.in $(SOURCES) all: make-objects ../libcruft.a .PHONY: all make-objects: for dir in $(SUBDIRS); do echo making all in $$dir; cd $$dir; $(MAKE) $( MDEFINES) all; cd ..; done .PHONY: make-objects CRUFT_FSRC = $(foreach dir, $(SUBDIRS), $(wildcard $(srcdir)/$(dir)/*.f)) CRUFT_OBJ3 = $(patsubst $(srcdir)/%, %, $(CRUFT_FSRC)) CRUFT_OBJ2 = $(patsubst %.f, %.o, $(CRUFT_OBJ3)) CRUFT_OBJ1 = $(subst misc/d1mach.o, , $(CRUFT_OBJ2)) CRUFT_OBJ = $(CRUFT_OBJ1) misc/d1mach.o ../libcruft.a: $(CRUFT_OBJ) rm -f ../libcruft.a $(AR) $(ARFLAGS) ../libcruft.a $(CRUFT_OBJ) $(RANLIB) ../libcruft.a $(CRUFT_OBJ): The reason I don't just do this: : CRUFT_FSRC = $(foreach dir, $(SUBDIRS), $(wildcard $(srcdir)/$(dir)/*.o)) is so that we get some kind of message if there is an error compiling some of the .o files. Thanks, -- John W. Eaton | The exam demonstrates a comminuted, slightly overlapping jwe at che dot utexas dot edu| | angulated fracture of the midfifth metatarsal.