On Wed, 3 Jan 2001, ts wrote:

> >>>>> "H" == Hugh Sasse Staff Elec Eng <hgs / dmu.ac.uk> writes:
> 
> >> make distclean
> 
>  Well, I think that I've found
> 
>  make distclean call "miniruby -Cext extmk.rb clean"
> 
>  and clean don't remove the Makefile, this mean that after an distclean you
>  still have Makefile in ext/*/
> 
> H> gcc -fPIC -g -O2  -I/home/hgs/ruby/ruby-1.6.2 -I/home/hgs/ruby/ruby-1.6.2
> H> -I/usr/local/include -DHAVE_GDBM_H  -c gdbm.c
> 
>  It has found an old Makefile
> 
>  Remove all Makefile in the subdirectories of ext, and re-run
> 
>  make distclean
>  ./configure
>  make
> 
>  Probably the Makefile must be modified, to call distclean also with
>  extmk.rb 

Would this patch fix things, or does it assume to much?  I'm thinking
that some makes (PC ones) won't use the bourne shell really so this might
be too clever:

gdiff -u Makefile.in.orig Makefile.in
--- Makefile.in.orig    Mon Dec 25 03:55:18 2000
+++ Makefile.in Tue Jan  2 16:16:12 2001
@@ -115,6 +115,12 @@
                @rm -f Makefile ext/extmk.rb config.h
                @rm -f ext/config.cache config.cache config.log
config.status
                @rm -f *~ core *.core gmon.out y.tab.c y.output ruby.imp
+               @for i in cygwin djgpp ext lib misc missing sample win32
x68 
+               @do
+               @rm -f $i/Makefile $i/core $i/config.cache
$i/config.status
+               @rm -f $i/config.log
+               @done
+
 
 realclean:     distclean
                @rm -f parse.c
brains hgs 70 %>

Meanwhile I will try the build again
> 
> 
> 
> Guy Decoux
> 
	Hugh
	hgs / dmu.ac.uk