]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* Makefile.am: Moved ltconfig and ltmain.sh back into srcdir, and
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Thu, 14 Jan 1999 19:08:18 +0000 (19:08 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Thu, 14 Jan 1999 19:08:18 +0000 (19:08 +0000)
  add them to the distribution.  Added work-around if `mv -f' fails.
fix @AINCLUDE_M4_LIST@ and @DIST_MAKEFILE_LIST@ for relative and
absolute specifications of srcdir

ChangeLog
Makefile.am

index 795f87da9d2bbec71d1943f60ec92ad6530793ac..194a3b99bd9d8d5fc6cf6bd26f3615b1b5b4b41d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+1999-01-14  Alexandre Oliva  <oliva@dcc.unicamp.br>
+
+       * Makefile.am: Moved ltconfig and ltmain.sh back into srcdir, and
+       add them to the distribution.  Added work-around if `mv -f' fails.
+       fix @AINCLUDE_M4_LIST@ and @DIST_MAKEFILE_LIST@ for relative and
+       absolute specifications of srcdir
+
 1999-01-14  Thomas Tanner  <tanner@gmx.de>
 
        * libltdl/ltdl.c: added variable symbol prefix, added user-defined
index 1f4a6fcd78ecf1f013e6a7229ce4405bbf0d107a..d051dd5ba53dfa626ae5cf7298871231cc7fb372 100644 (file)
@@ -14,8 +14,8 @@ CPPLAGS = @CPPFLAGS@
 aclocal_macros = libtool.m4
 
 EXTRA_DIST = $(aclocal_macros) libtoolize.in ltconfig.in ltmain.in \
-       libtool.spec
-CLEANFILES = libtool libtoolize ltconfig ltmain.sh
+       libtool.spec ltconfig ltmain.sh
+CLEANFILES = libtool libtoolize ltconfig.T ltmain.shT
 
 # These are required by libtoolize.
 pkgdata_SCRIPTS = config.guess config.sub ltconfig
@@ -33,16 +33,18 @@ libltdl.tar.gz: libltdl/Makefile
        rm -f libltdl.tar.gz
        ln -s libltdl/libltdl-0.1.tar.gz libltdl.tar.gz
 
-libtool: ltmain.sh ltconfig
+libtool: $(srcdir)/ltmain.sh $(srcdir)/ltconfig
        CC="$(CC)" CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" \
        LD="$(LD)" LN_S="$(LN_S)" NM="$(NM)" RANLIB="$(RANLIB)" \
-       $(SHELL) ltconfig --srcdir=$(srcdir) --output=$@ ltmain.sh
+       $(SHELL) $(srcdir)/ltconfig --srcdir=$(srcdir)  --output=$@ \
+         $(srcdir)/ltmain.sh
 
 # Experimental C version of libtool.
-clibtool: $(srcdir)/ltmain.c ltconfig
+clibtool: $(srcdir)/ltmain.c $(srcdir)/ltconfig
        CC="$(CC)" CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" \
        LD="$(LD)" LN_S="$(LN_S)" NM="$(NM)" RANLIB="$(RANLIB)" \
-       $(SHELL) ltconfig --srcdir=$(srcdir) --output=$@ $(srcdir)/ltmain.c
+       $(SHELL) $(srcdir)/ltconfig --srcdir=$(srcdir)  --output=$@ \
+         $(srcdir)/ltmain.c
 
 libtoolize: $(srcdir)/libtoolize.in $(top_builddir)/config.status
        CONFIG_FILES=libtoolize CONFIG_HEADERS= $(top_builddir)/config.status
@@ -50,32 +52,35 @@ libtoolize: $(srcdir)/libtoolize.in $(top_builddir)/config.status
 
 # Do line number substitution, as well as PACKAGE and VERSION.
 # Line numbering transliterated from a section in autoconf (Autoconf 2.12).
-ltconfig: $(srcdir)/ltconfig.in $(top_srcdir)/configure.in
+$(srcdir)/ltconfig: $(srcdir)/ltconfig.in $(top_srcdir)/configure.in
+       rm -f ltconfig.T
        $(AWK) '/@LINENO@/ { printf "%d:", NR } { print }' $(srcdir)/ltconfig.in | \
          sed -e 's/@''PACKAGE@/@PACKAGE@/' -e 's/@''VERSION@/@VERSION@/' \
              -e '/@LINENO@/s/^\([0-9][0-9]*\):\(.*\)@LINENO@/\2\1/' > ltconfig.T
        chmod +x ltconfig.T
-       mv -f ltconfig.T $@
+       mv -f ltconfig.T $@ || \
+       (rm -f $@ && cp ltconfig.T $@ && rm -f ltconfig.T)
 
-ltmain.sh: $(srcdir)/ltmain.in $(top_srcdir)/configure.in
+$(srcdir)/ltmain.sh: $(srcdir)/ltmain.in $(top_srcdir)/configure.in
+       rm -f ltmain.shT
        sed -e 's/@''PACKAGE@/@PACKAGE@/' -e 's/@''VERSION@/@VERSION@/' $(srcdir)/ltmain.in > ltmain.shT
-       mv -f ltmain.shT $@
+       mv -f ltmain.shT $@ || \
+       (rm -f $@ && cp ltmain.shT $@ && rm -f ltmain.shT)
 
 # All our rules should depend on these demo files.
 all-local check-local: $(ACINCLUDE_M4_LIST) libtool
 
 @ACINCLUDE_M4_LIST@: $(srcdir)/libtool.m4
        rm -f $@
-       cd `echo $@ | sed 's,/[^/]*$$,,'` && \
-       cp $(srcdir)/libtool.m4 acinclude.m4
+       cp $(srcdir)/libtool.m4 $@
 
 .PHONY: configure-subdirs
 configure-subdirs distdir: $(DIST_MAKEFILE_LIST)
 @DIST_MAKEFILE_LIST@:
        dir=`echo $@ | sed 's,^[^/]*$$,.,;s,/[^/]*$$,,'`; \
        test -d $$dir || mkdir $$dir || exit 1; \
-       save=`pwd` && cd $(top_srcdir) && abs_srcdir=`pwd` && cd $$save; \
-       (cd $$dir && $$abs_srcdir/$$dir/configure) || exit 1
+       abs_srcdir=`cd $(top_srcdir) >/dev/null && pwd`; \
+       (cd $$dir && $abs_srcdir/$$dir/configure) || exit 1
 
 ################################################################
 ##