I just came across a difference between between GNU make and BSD make: % cat makefile1 $(var)/foo: bar $(var)/bar: echo "making bar" % make var=. -f makefile1 ./foo make: don't know how to make bar. Stop
make: stopped in /usr/src/local/libtool/err % gmake var=. -f makefile1 ./foo echo "making bar" making bar % cat makefile2 $(var)/foo: $(var)/bar $(var)/bar: echo "making bar" % make var=. -f makefile2 ./foo echo "making bar" making bar % gmake var=. -f makefile2 ./foo echo "making bar" making bar % In otherwords, we need $(var)/bar as the dependency for success with bsd make. Why is this relevant to libtool? In bootstrap "make" is called 3 times, which might end up being a non-GNU make and AFAIK we don't say "you must use gnu make" anywhere - do we? If make = bsd make, then make: don't know how to make stamp-vcl. Stop which the attached trivial patch fixes. I haven't looked for other instances.. Cheers, Patrick
Index: Makefile.am =================================================================== RCS file: /cvsroot/libtool/libtool/Makefile.am,v retrieving revision 1.132 diff -u -r1.132 Makefile.am --- Makefile.am 16 Oct 2004 14:43:47 -0000 1.132 +++ Makefile.am 28 Oct 2004 16:30:08 -0000 @@ -120,7 +120,7 @@ ## distcheck (at least) by rebuilding ltmain.sh in the source ## tree whenever config.status regenerates the Makefile. EXTRA_DIST += config/ltmain.sh -$(top_srcdir)/config/ltmain.sh: $(sh_files) config/ltmain.m4sh configure.ac stamp-vcl +$(top_srcdir)/config/ltmain.sh: $(sh_files) config/ltmain.m4sh configure.ac $(top_srcdir)/stamp-vcl $(timestamp); \ cd $(top_srcdir); \ rm -f config/ltmain.in config/ltmain.tmp config/ltmain.sh; \ @@ -173,7 +173,7 @@ # Automake doesn't want us to generate distributed files from config.status, # but the alternative (see libtool-1.4.3) was even uglier! -libtool: $(top_builddir)/config.status config/ltmain.sh stamp-vcl +libtool: $(top_builddir)/config.status config/ltmain.sh $(top_srcdir)/stamp-vcl cd $(top_builddir) && $(SHELL) ./config.status $@ .PHONY: configure-subdirs
_______________________________________________ Libtool mailing list [EMAIL PROTECTED] http://lists.gnu.org/mailman/listinfo/libtool