]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* Makefile.in (dist): Fixed for srcdir != objdir.
authoroliva <oliva>
Thu, 7 Oct 1999 12:41:33 +0000 (12:41 +0000)
committeroliva <oliva>
Thu, 7 Oct 1999 12:41:33 +0000 (12:41 +0000)
ChangeLog
Makefile.in
doc/Makefile.in

index c1bf93dd330e0dcb770c2feece7e013c94813486..ef1fc96a9306ac4618d96384f4b5e9630b77f0b6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+1999-10-07  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
+
+       * Makefile.in (dist): Fixed for srcdir != objdir.
+
 1999-10-07  Akim Demaille  <akim@epita.fr>
 
        * acspecific.m4 (AC_CHECK_HEADER_DIRENT): Reintroduce its
index 15bb0dc77bc9cb7a6f0655f0d4cc5d915845449e..edec20b3c5a49b340bf7237646a9e4167c40e1ac 100644 (file)
@@ -1,5 +1,5 @@
 # Makefile for Autoconf.
-# Copyright (C) 1992, 1993, 1994, 1998 Free Software Foundation, Inc.
+# Copyright (C) 1992, 1993, 1994, 1998, 1999 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -229,14 +229,22 @@ TAGS:
 # Don't depend on DISTFILES because there's no rule for "standards.info*".
 dist: $(DISTDEP)
        distname=`sed -e '/define(AC_ACVERSION,/!d' \
-       -e 's/[^0-9.]*\([0-9.]*\).*/autoconf-\1/' -e q acgeneral.m4`; \
+                     -e 's/[^0-9.]*\([0-9.]*\).*/autoconf-\1/' \
+                     -e q ${srcdir}/acgeneral.m4`; \
        rm -fr $$distname; \
        mkdir $$distname $$distname/testsuite $$distname/testsuite/config \
        $$distname/testsuite/lib $$distname/testsuite/autoconf.g \
        $$distname/testsuite/autoconf.s; \
        for file in $(DISTFILES); do \
-         ln $$file $$distname/$$file \
-         || { echo copying $$file instead; cp -p $$file $$distname/$$file;}; \
+         if test -f $$file; then \
+           ln $$file $$distname/$$file \
+           || { echo copying $$file instead; \
+                cp -p $$file $$distname/$$file; } ; \
+         else for file in `CDPATH=:; cd $(srcdir) && echo $$file`; do \
+           ln $(srcdir)/$$file $$distname/$$file \
+           || { echo copying $$file instead; \
+                cp -p $(srcdir)/$$file $$distname/$$file; } ; \
+         done; fi; \
        done; \
        chmod -R a+rX $$distname; \
        tar -chz -f $$distname.tar.gz $$distname; \
index 15bb0dc77bc9cb7a6f0655f0d4cc5d915845449e..edec20b3c5a49b340bf7237646a9e4167c40e1ac 100644 (file)
@@ -1,5 +1,5 @@
 # Makefile for Autoconf.
-# Copyright (C) 1992, 1993, 1994, 1998 Free Software Foundation, Inc.
+# Copyright (C) 1992, 1993, 1994, 1998, 1999 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -229,14 +229,22 @@ TAGS:
 # Don't depend on DISTFILES because there's no rule for "standards.info*".
 dist: $(DISTDEP)
        distname=`sed -e '/define(AC_ACVERSION,/!d' \
-       -e 's/[^0-9.]*\([0-9.]*\).*/autoconf-\1/' -e q acgeneral.m4`; \
+                     -e 's/[^0-9.]*\([0-9.]*\).*/autoconf-\1/' \
+                     -e q ${srcdir}/acgeneral.m4`; \
        rm -fr $$distname; \
        mkdir $$distname $$distname/testsuite $$distname/testsuite/config \
        $$distname/testsuite/lib $$distname/testsuite/autoconf.g \
        $$distname/testsuite/autoconf.s; \
        for file in $(DISTFILES); do \
-         ln $$file $$distname/$$file \
-         || { echo copying $$file instead; cp -p $$file $$distname/$$file;}; \
+         if test -f $$file; then \
+           ln $$file $$distname/$$file \
+           || { echo copying $$file instead; \
+                cp -p $$file $$distname/$$file; } ; \
+         else for file in `CDPATH=:; cd $(srcdir) && echo $$file`; do \
+           ln $(srcdir)/$$file $$distname/$$file \
+           || { echo copying $$file instead; \
+                cp -p $(srcdir)/$$file $$distname/$$file; } ; \
+         done; fi; \
        done; \
        chmod -R a+rX $$distname; \
        tar -chz -f $$distname.tar.gz $$distname; \