]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
[ng] dist: rename some non-public vars to make clear they are internal
authorStefano Lattarini <stefano.lattarini@gmail.com>
Thu, 3 May 2012 16:56:57 +0000 (18:56 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 6 May 2012 10:38:52 +0000 (12:38 +0200)
The variable $(DISTFILES), $(DIST_COMMON) and $(DIST_SOURCES) have never
been documented, and they were always intended to be internal variables.
This is absolutely not evident from their names, though.  So rename them
like this:

    DISTFILES     =>  am__dist_files
    DIST_COMMON   =>  am__dist_common
    DIST_SOURCES  =>  am__dist_sources

* NG-NEWS: Update.
* automake.in: Adjust code and comments.
* lib/am/configure.am, lib/am/data.am, lib/am/java.am, lib/am/lisp.am,
lib/am/python.am, lib/am/scripts.am, lib/am/texi-vers.am: Likewise.
* lib/am/distdir.am: Likewise, and related variable renamings.
And throw in a few improvements to comments since we are at it.
* Several tests: Adjust.
* syntax-checks.mk: Add rules (and supporting variables) verifying
that the obsolete 'DIST*' variables are actually not used anymore.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
49 files changed:
NG-NEWS
automake.in
lib/am/configure.am
lib/am/data.am
lib/am/distdir.am
lib/am/java.am
lib/am/lisp.am
lib/am/python.am
lib/am/scripts.am
lib/am/texi-vers.am
syntax-checks.mk
t/autodist-acconfig-no-subdir.sh
t/autodist-acconfig.sh
t/autodist-aclocal-m4.sh
t/autodist-config-headers.sh
t/autodist-configure-no-subdir.sh
t/autodist-stamp-vti.sh
t/autodist-subdir.sh
t/autodist.sh
t/colon5.sh
t/colon7.sh
t/confh.sh
t/confh8.sh
t/depdist.sh
t/dist-auxfile.sh
t/distcom-subdir.sh
t/distcom2.sh
t/distcom3.sh
t/distcom4.sh
t/distcom5.sh
t/distdir.sh
t/hdr-vars-defined-once.sh
t/insh2.sh
t/libobj7.sh
t/nodist.sh
t/nodist3.sh
t/pr2.sh
t/subdir4.sh
t/substref.sh
t/test-driver-is-distributed.sh
t/txinfo.sh
t/txinfo2.sh
t/txinfo8.sh
t/vtexi3.sh
t/vtexi4.sh
t/yacc-basic.sh
t/yacc-cxx.sh
t/yacc-d-basic.sh
t/yacc-d-cxx.sh

diff --git a/NG-NEWS b/NG-NEWS
index 452ecd9a3ac491e3efed1091ac649ad811f2e2d9..78ab1c26b96952cec00d041182ff3f65e56a25ca 100644 (file)
--- a/NG-NEWS
+++ b/NG-NEWS
@@ -127,6 +127,17 @@ Miscellaneous
   variable $(AM_MAKEFLAGS) has been removed, and its content is no more
   passed to recursive make invocations.
 
+* The variables $(DISTFILES), $(DIST_COMMON) and $(DIST_SOURCES) had
+  never been documented in mainline Automake, and were always intended
+  to be internal variables.  But that was not clear from their names.
+  So we have renamed rename like this:
+
+    DISTFILES     =>  am__dist_files
+    DIST_COMMON   =>  am__dist_common
+    DIST_SOURCES  =>  am__dist_sources
+
+  Do not use any of these variables in your Makefiles!
+
 -----
 
 Copyright (C) 2012 Free Software Foundation, Inc.
index fa30d6dd788bbb950eb1b30a2e2601608d8b7ca3..9c75d9cd0479a0b45b8fa8fdff6d54ed36a37160 100644 (file)
@@ -226,7 +226,7 @@ my @libtool_files = qw(ltmain.sh config.guess config.sub);
 my @libtool_sometimes = qw(ltconfig ltcf-c.sh ltcf-cxx.sh ltcf-gcj.sh);
 
 # Commonly found files we look for and automatically include in
-# DISTFILES.
+# distributed files.
 my @common_files =
     (qw(ABOUT-GNU ABOUT-NLS AUTHORS BACKLOG COPYING COPYING.DOC COPYING.LIB
        COPYING.LESSER ChangeLog INSTALL NEWS README THANKS TODO
@@ -418,7 +418,7 @@ my %configure_cond = ();
 # This maps extensions onto language names.
 my %extension_map = ();
 
-# List of the DIST_COMMON files we discovered while reading
+# List of the distributed files we discovered while reading
 # configure.ac.
 my $configure_dist_common = '';
 
@@ -3759,7 +3759,7 @@ sub handle_dist ()
   # check that.  But if the file is in a subdir without a Makefile,
   # we want to distribute it here if we are doing '.'.  Ugly!
   # Also, in some corner cases, it's possible that the following code
-  # will cause the same file to appear in the $(DIST_COMMON) variables
+  # will cause the same file to appear in the $(am__dist_common) variables
   # of two distinct Makefiles; but this is not a problem, since the
   # 'distdir' target in 'lib/am/distdir.am' can deal with the same
   # file being distributed multiple times.
@@ -3774,8 +3774,8 @@ sub handle_dist ()
        }
     }
 
-  # We don't expected further attempts to modify DIST_COMMON after
-  # this point, so disallow it, for extra safety.
+  # We don't expected further attempts to modify $(am__dist_common)
+  # after this point, so disallow it, for extra safety.
   $handle_dist_run = 1;
 
   # Scan EXTRA_DIST to see if we need to distribute anything from a
@@ -5381,7 +5381,7 @@ sub scan_autoconf_files ()
     if -f $config_aux_dir . '/install.sh';
 
   # Preserve dist_common for later.
-  $configure_dist_common = variable_value ('DIST_COMMON') || '';
+  $configure_dist_common = variable_value ('am__dist_common') || '';
 
 }
 
@@ -6578,7 +6578,7 @@ sub read_am_file ($$)
                push (@include_stack, "\$\(top_srcdir\)/$path");
                # Distribute any included file.
 
-               # Always use the $(top_srcdir) prefix in DIST_COMMON,
+               # Always use the $(top_srcdir) prefix in am__dist_common,
                # otherwise OSF make will implicitly copy the included
                # file in the build tree during "make distdir" to satisfy
                # the dependency.
@@ -6589,7 +6589,7 @@ sub read_am_file ($$)
              {
                $path =~ s/\$\(srcdir\)\///;
                push (@include_stack, "\$\(srcdir\)/$path");
-               # Always use the $(srcdir) prefix in DIST_COMMON,
+               # Always use the $(srcdir) prefix in am__dist_common,
                # otherwise OSF make will implicitly copy the included
                # file in the build tree during "make distdir" to satisfy
                # the dependency.
@@ -7424,7 +7424,7 @@ sub locate_aux_dir ()
 
 # &push_required_file ($DIR, $FILE, $FULLFILE)
 # --------------------------------------------------
-# Push the given file onto DIST_COMMON.
+# Push the given file onto $(am__dist_common).
 sub push_required_file
 {
   my ($dir, $file, $fullfile) = @_;
@@ -7499,7 +7499,8 @@ sub push_required_file
   else
     {
       prog_error "a Makefile in relative directory $relative_dir " .
-                 "can't add files in directory $dir to DIST_COMMON";
+                 "can't add files in directory $dir to the list " .
+                 "of distributed files";
     }
 }
 
@@ -7534,11 +7535,10 @@ sub required_file_check_or_copy ($$$)
   return
     if $found_it && (! $add_missing || ! $force_missing);
 
-  # If we've already looked for it, we're done.  You might
-  # wonder why we don't do this before searching for the
-  # file.  If we do that, then something like
-  # AC_OUTPUT(subdir/foo foo) will fail to put foo.in into
-  # DIST_COMMON.
+  # If we've already looked for it, we're done.  You might wonder why
+  # we don't do this before searching for the file.  If we do that,
+  # then something like AC_OUTPUT(subdir/foo foo) will fail to put
+  # 'foo.in' into the list of distributed files $(am__dist_common).
   if (! $found_it)
     {
       return if defined $required_file_not_found{$fullfile};
@@ -7825,8 +7825,8 @@ sub push_dist_common
 {
   prog_error "push_dist_common run after handle_dist"
     if $handle_dist_run;
-  Automake::Variable::define ('DIST_COMMON', VAR_AUTOMAKE, '+', TRUE, "@_",
-                             '', INTERNAL, VAR_PRETTY);
+  Automake::Variable::define ('am__dist_common', VAR_AUTOMAKE, '+',
+                              TRUE, "@_", '', INTERNAL, VAR_PRETTY);
 }
 
 
@@ -7924,7 +7924,8 @@ sub generate_makefile ($$)
   define_pretty_variable ('SOURCES', TRUE, INTERNAL, @sources);
   if (! option 'no-dist')
     {
-      define_pretty_variable ('DIST_SOURCES', TRUE, INTERNAL, @dist_sources);
+      define_pretty_variable ('am__dist_sources', TRUE, INTERNAL,
+                              @dist_sources);
     }
 
   handle_texinfo;
index e0cd44317ee5a32c6c743a9b40622050dd1819a2..ac816c46016302d3c8084c08bb0f9d8bc712a025 100644 (file)
@@ -81,7 +81,7 @@ endif %?TOPDIR_P%
 ## Avoid the "deleted header file" problem for the dependencies.
 ?HAVE-MAKEFILE-IN-DEPS?%MAKEFILE-IN-DEPS%:
 
-DIST_COMMON += %MAKEFILE-AM%
+am__dist_common += %MAKEFILE-AM%
 
 
 ## --------------------------- ##
@@ -93,7 +93,7 @@ if %?TOPDIR_P%
 ## don't exist.  This is especially important for configure, since it
 ## won't be created until autoconf is run -- which might be after
 ## automake is run.
-DIST_COMMON += $(top_srcdir)/configure $(am__configure_deps)
+am__dist_common += $(top_srcdir)/configure $(am__configure_deps)
 endif %?TOPDIR_P%
 
 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
index b8b658800096f72aa5a79d99c64a43fdf56b5945..2bed9aee3a363c4707e306a98e489121bb7e9c30 100644 (file)
@@ -95,5 +95,5 @@ endif %?INSTALL%
 ## -------------- ##
 
 if %?DIST%
-DIST_COMMON += %DISTVAR%
+am__dist_common += %DISTVAR%
 endif %?DIST%
index 7fe451a83d2c28ba6141d434eb6067d5600bb3c5..273b4d6fbd34e2eaaeaf971365696c3c17d47bcf 100644 (file)
 ## You should have received a copy of the GNU General Public License
 ## along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-DISTFILES = $(call am__uniq, \
-  $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST))
+am__dist_files = $(call am__uniq, \
+  $(am__dist_common) $(am__dist_sources) $(TEXINFOS) $(EXTRA_DIST))
 
-## Try to avoid repeated slashed in the $(DISTFILES) entries, to make the
+## Try to avoid repeated slashed in the entries, to make the
 ## filtering in the 'am__dist_files_1' definition below more reliable.
 ## This idiom should compress up to four consecutive '/' characters in
-## each $(DISTFILES) entry.
-am__dist_files_1 = $(subst //,/,$(subst //,/,$(DISTFILES)))
+## each $(am__dist_files) entry.
+am__dist_files_1 = $(subst //,/,$(subst //,/,$(am__dist_files)))
 
 am__dist_files_2 = \
 ## Files filtered out here require an ad-hoc "munging"; see the two
@@ -40,25 +40,27 @@ am__dist_files_2 = \
 ## situations that it's probably not worth worrying about.
   $(patsubst $(srcdir)/%, %, \
              $(filter $(srcdir)/%, $(am__dist_files_1))) \
-## Also rewrite $(top_srcdir) (which sometimes appears in DISTFILES, and
-## can be absolute) by $(top_builddir) (which is always relative).  If
-## needed, $(srcdir) will be prepended later by our VPATH-aware rules.
+## Also rewrite $(top_srcdir) -- which can sometimes appear in
+## $(am__dist_common), and can be absolute -- by $(top_builddir)
+## (which is always relative).  If needed, $(srcdir) will be
+## prepended later by our VPATH-aware rules.
 ## The same caveats reported above apply.
   $(patsubst $(top_srcdir)/%, $(top_builddir)/%, \
              $(filter $(top_srcdir)/%, $(am__dist_files_1)))
 
 ## Strip extra whitespaces, for more safety.
-am__dist_files = $(strip $(am__dist_files_2))
-
-## Given the pro-processing done above to 'am__dist_files', this
-## definition ensures that we won't try to create the wrong directories
-## when $(top_srcdir) or $(srcdir) appears in DISTFILES.  For example,
-## with EXTRA_DIST containing "$(srcdir)/subdir/file", this will allow
-## our rules to correctly create "$(distdir)/subdir", and not
+am__dist_files_cooked = $(strip $(am__dist_files_2))
+
+## Given the pre-processing done above to the list of distributed files,
+## this definition ensures that we won't try to create the wrong
+## directories when $(top_srcdir) or $(srcdir) appears in some entry of
+## the list of all distributed files.
+## For example, with EXTRA_DIST containing "$(srcdir)/subdir/file", this
+## will allow our rules to correctly create "$(distdir)/subdir", and not
 ## "$(distdir)/$(srcdir)/subdir" -- which, in a VPATH build where
-## $(subdir) = .., would be the build directory!
+## "$(subdir) = ..", would be the build directory!
 am__dist_parent_dirs = $(call am__uniq, \
-  $(filter-out ., $(patsubst ./%,%,$(dir $(am__dist_files)))))
+  $(filter-out ., $(patsubst ./%,%,$(dir $(am__dist_files_cooked)))))
 
 if %?TOPDIR_P%
 distdir = $(PACKAGE)-$(VERSION)
@@ -118,7 +120,7 @@ if %?SUBDIRS%
 AM_RECURSIVE_TARGETS += distdir
 endif %?SUBDIRS%
 
-distdir: $(DISTFILES)
+distdir: $(am__dist_files)
 ##
 ## For Gnits users, this is pretty handy.  Look at 15 lines
 ## in case some explanatory text is desirable.
@@ -175,7 +177,7 @@ endif %?TOPDIR_P%
 ## There are situations in which 'ln' can fail.  For instance a file to
 ## distribute could actually be a cross-filesystem symlink -- this can
 ## easily happen if "gettextize" was run on the distribution.
-       @lst='$(am__dist_files)'; for file in $$lst; do \
+       @lst='$(am__dist_files_cooked)'; for file in $$lst; do \
 ## Always look for the file or directory to distribute in the build
 ## directory first, in VPATH spirit.
          if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
@@ -199,14 +201,11 @@ endif %?TOPDIR_P%
            fi; \
            cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
          else \
-## Test for file existence because sometimes:
-##  - a file gets included in DISTFILES twice (for example, this happens
-##    when a single source file is used in building more than one
-##    program), or
-##  - a single auxiliary file is distributed from several Makefiles at
-##    once (see automake bug#9546 and bug#9651, and the follow-up commits
-##    v1.11-1219-g326ecba, v1.11-1220-g851b1ae and v1.11-1221-gdccae6a).
-## See also test 'dist-repeated.test'.
+## Test for file existence because sometimes a single auxiliary file
+## is distributed from several Makefiles at once (see automake bug#9546
+## and bug#9651, and the follow-up commits 'v1.11-1219-g326ecba',
+## 'v1.11-1220-g851b1ae' and 'v1.11-1221-gdccae6a').  See also test
+## 't/dist-repeated.sh'.
            test -f "$(distdir)/$$file" \
            || cp -p $$d/$$file "$(distdir)/$$file" \
            || exit 1; \
index 6c163b56f5b1fc784ee29c0d8a13a1658d6d88a9..289013c97152a28eba59501cc37222d4fcc29057 100644 (file)
@@ -88,5 +88,5 @@ clean-%NDIR%JAVA:
 ## -------------- ##
 
 if %?DIST%
-DIST_COMMON += %DISTVAR%
+am__dist_common += %DISTVAR%
 endif %?DIST%
index 72bcf9aeb69b77e03ece0d67fceac8799020f56d..d5dfaac7adf6dc6a3f4c444f867228dbaacdfcf4 100644 (file)
@@ -145,5 +145,5 @@ clean-lisp:
 ## -------------- ##
 
 if %?DIST%
-DIST_COMMON += %DISTVAR%
+am__dist_common += %DISTVAR%
 endif %?DIST%
index cab61294aeb2e71af69ff03f94229e661804b9d5..cf1d9b01a783ee4af2ae81f7cf8360e135a506d4 100644 (file)
@@ -125,5 +125,5 @@ endif %?INSTALL%
 ## -------------- ##
 
 if %?DIST%
-DIST_COMMON += %DISTVAR%
+am__dist_common += %DISTVAR%
 endif %?DIST%
index 64e093e64ddbff12ae16e6363ba64b51f6cdde6e..8bc8c0a52b59ed89cbe0574e894f380897684406 100644 (file)
@@ -94,7 +94,7 @@ endif %?INSTALL%
 ## -------------- ##
 
 if %?DIST%
-DIST_COMMON += %DISTVAR%
+am__dist_common += %DISTVAR%
 endif %?DIST%
 
 
index a13b7adcd5b9a416f3288c85a1ebe1c30f08410e..4f2495c5ac83ad54ef7fac5d47151ca747bc3ed2 100644 (file)
@@ -14,7 +14,7 @@
 ## You should have received a copy of the GNU General Public License
 ## along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-DIST_COMMON += %VTEXI% %STAMPVTI%
+am__dist_common += %VTEXI% %STAMPVTI%
 
 ## Don't give this rule a command (even '@:').
 ## %STAMPVTI% is always newer than %VTEXI%, so this rule is always
index 86a1faef892ee4d45ef15b772910c3c627a40c80..9f108eed95e2ce7ebff368077d8fcff9fc32d75b 100644 (file)
@@ -34,6 +34,7 @@ xtests := $(shell \
 xdefs = $(srcdir)/defs $(srcdir)/defs-static.in
 
 ams := $(shell find $(srcdir) -name '*.dir' -prune -o -name '*.am' -print)
+pms := $(dist_perllib_DATA)
 
 # Some simple checks, and then ordinary check.  These are only really
 # guaranteed to work on my machine.
@@ -60,6 +61,9 @@ sc_tests_make_can_chain_suffix_rules \
 sc_tests_make_dont_do_useless_vpath_rebuilds \
 sc_no_dotmake_target \
 sc_no_am_makeflags \
+sc_no_DISTFILES \
+sc_no_DIST_COMMON \
+sc_no_DIST_SOURCES \
 sc_tests_no_make_e \
 sc_docs_no_make_e \
 sc_make_simple_include \
@@ -296,6 +300,25 @@ sc_no_am_makeflags:
          exit 1; \
        fi
 
+# Modern names for internal variables that had a bad name once.
+modern_DISTFILES = am__dist_files
+modern_DIST_COMMON = am__dist_common
+modern_DIST_SOURCES = am__dist_sources
+
+sc_no_DISTFILES sc_no_DIST_COMMON sc_no_DIST_SOURCES: sc_no_% :
+       @files="\
+         $(xtests) \
+         $(pms) \
+         $(ams) \
+         $(srcdir)/automake.in \
+         $(srcdir)/doc/*.texi \
+       "; \
+       if grep -F '$*' $$files; then \
+         echo "'\$$($*)' is obsolete and no more used." >&2; \
+         echo "You should use '$(modern_$*)' instead." >&2; \
+         exit 1; \
+       fi
+
 ## "make -e" is brittle and unsafe, since it let *all* the environment
 ## win over the macro definitions in the Makefiles.  We needed it when
 ## we couldn't assume GNU make, but now that the tide has turned, it's
index d4ad1d96006dbea009e822064cd514a2e8f88c29..18cd5f46afdef86a1123b78f894dcebff5332b83 100755 (executable)
@@ -40,8 +40,8 @@ cat > sub/Makefile.am <<'END'
 acconfig.h:
        echo target $@ should not be built >&2; exit 1
 check-local:
-       echo $(DISTFILES) | grep 'acconfig\.h' && exit 1; :
-       echo $(DIST_COMMON) | grep 'acconfig\.h' && exit 1; :
+       echo $(am__dist_common) $(am__dist_files) \
+          | grep 'acconfig\.h' && exit 1; :
 END
 
 : > sub/acconfig.h
index 18b280c3c8252e0887c424aadcdd5079257eb806..55884f77f2fb5bd0f15874902af6fc4876d45fd0 100755 (executable)
@@ -28,7 +28,7 @@ cat > Makefile.am <<'END'
 .PHONY: test
 test: distdir
        ls -l $(distdir)
-       echo ' ' $(DIST_COMMON) ' ' | grep '[ /]acconfig\.h '
+       echo ' ' $(am__dist_common) ' ' | grep '[ /]acconfig\.h '
        test -f $(distdir)/acconfig.h
 END
 
index 6108f574350a711534fb78d03d9324ff3fa0d7af..448634c5421b450909232f7a233fb7f68d9d24b1 100755 (executable)
@@ -34,8 +34,8 @@ cat > Makefile.am <<'END'
 test: distdir
        ls -l $(distdir)
        test ! -f $(distdir)/aclocal.m4
-       echo $(DISTFILES) | grep 'aclocal\.m4' && exit 1; :
-       echo $(DIST_COMMON) | grep 'aclocal\.m4' && exit 1; :
+       echo $(am__dist_files) $(am__dist_common) \
+          | grep 'aclocal\.m4' && exit 1; :
 check-local: test
 END
 
index 65888f8138ca0bc932e40eb4292d0e00434f3f55..798284ae60dd3feb7eb417e59fdd4b8b0360ed4b 100755 (executable)
@@ -30,12 +30,12 @@ cat > Makefile.am <<'END'
 .PHONY: test
 test: distdir
        ls -l $(distdir) $(distdir)/sub
-       echo ' ' $(DIST_COMMON) ' ' | grep '[ /]config\.h\.bot '
-       echo ' ' $(DIST_COMMON) ' ' | grep '[ /]config\.h\.top '
-       echo ' ' $(DIST_COMMON) ' ' | grep '[ /]cfg2\.h\.bot '
-       echo ' ' $(DIST_COMMON) ' ' | grep '[ /]cfg2\.h\.top '
-       echo ' ' $(DIST_COMMON) ' ' | grep '[ /]sub/config\.h\.bot '
-       echo ' ' $(DIST_COMMON) ' ' | grep '[ /]sub/config\.h\.top '
+       echo ' ' $(am__dist_common) ' ' | grep '[ /]config\.h\.bot '
+       echo ' ' $(am__dist_common) ' ' | grep '[ /]config\.h\.top '
+       echo ' ' $(am__dist_common) ' ' | grep '[ /]cfg2\.h\.bot '
+       echo ' ' $(am__dist_common) ' ' | grep '[ /]cfg2\.h\.top '
+       echo ' ' $(am__dist_common) ' ' | grep '[ /]sub/config\.h\.bot '
+       echo ' ' $(am__dist_common) ' ' | grep '[ /]sub/config\.h\.top '
        test -f $(distdir)/config.h.bot
        test -f $(distdir)/config.h.top
        test -f $(distdir)/cfg2.h.bot
index cc53cafcc27caff0f7c29b6764403596120d9f0e..b974748389689fbdcfd74fb0756dbb6011e8b70d 100755 (executable)
@@ -52,8 +52,8 @@ configure.ac:
 configure.in:
        $(dontbuild)
 check-local:
-       echo $(DISTFILES) | grep 'configure' && exit 1; :
-       echo $(DIST_COMMON) | grep 'configure' && exit 1; :
+       echo $(am__dist_files) $(am__dist_common) \
+          | grep 'configure' && exit 1; :
 END
 
 : > sub/configure.ac
index 4db1f141eec4985dcea533cbf69ef8df05bb2782..33ceb1a7089cff05f6386285492f1e41c09f2fd7 100755 (executable)
@@ -30,7 +30,7 @@ info_TEXINFOS = foo.texi
 .PHONY: test
 test: all distdir
        ls -l $(distdir)
-       echo ' ' $(DIST_COMMON) ' ' | grep '[ /]stamp-vti '
+       echo ' ' $(am__dist_common) ' ' | grep '[ /]stamp-vti '
        test -f $(distdir)/stamp-vti
 END
 
index 5e1f044e9b038ff41f6dc1875f08828b2f03d29f..ad99d91a38cd518d297455ea513168f5e40091a7 100755 (executable)
@@ -48,8 +48,8 @@ cat > Makefile.am <<'END'
 SUBDIRS = sub
 check-local:
 ## For debugging.
-       @echo DIST_COMMON:
-       @for f in $(DIST_COMMON); do echo "  $$f"; done
+       @echo am__dist_common:
+       @for f in $(am__dist_common); do echo "  $$f"; done
        @echo DISTDIR:
        @ls -l $(distdir) | sed 's/^/  /'
 ## Now the checks.
@@ -66,8 +66,8 @@ cat > sub/Makefile.am <<'END'
 include distfiles.am
 check-local:
 ## For debugging.
-       @echo DIST_COMMON:
-       @for f in $(DIST_COMMON); do echo "  $$f"; done
+       @echo am__dist_common:
+       @for f in $(am__dist_common); do echo "  $$f"; done
        @echo DISTDIR:
        @ls -l $(distdir) | sed 's/^/  /'
 ## Now the checks.
@@ -76,7 +76,7 @@ check-local:
 ## Some filenames might contain dots, but this won't cause spurious
 ## failures, and "spurious successes" are so unlikely that they're
 ## not worth worrying about.
-         echo ' ' $(DIST_COMMON) ' ' | grep "[ /]$$f " >/dev/null \
+         echo ' ' $(am__dist_common) ' ' | grep "[ /]$$f " >/dev/null \
            || { echo $$f: distcom fail >&2; exit 1; }; \
        done
 END
index e6435c54c9bc7327881702bd68bac6bfb8b4c35b..1b9764ded5154acf375d8e5a728226fc3ffc58d6 100755 (executable)
@@ -47,8 +47,8 @@ cat > Makefile.am <<'END'
 include distfiles.am
 check-local:
 ## For debugging.
-       @echo DIST_COMMON:
-       @for f in $(DIST_COMMON); do echo "  $$f"; done
+       @echo am__dist_common:
+       @for f in $(am__dist_common); do echo "  $$f"; done
        @echo DISTDIR:
        @ls -l $(distdir) | sed 's/^/  /'
 ## Now the checks.
@@ -59,7 +59,7 @@ check-local:
 ## Some filenames might contain dots, but this won't cause spurious
 ## failures, and "spurious successes" are so unlikely that they're
 ## not worth worrying about.
-         echo ' ' $(DIST_COMMON) ' ' | grep "[ /]$$f " >/dev/null \
+         echo ' ' $(am__dist_common) ' ' | grep "[ /]$$f " >/dev/null \
            || { echo $$f: distcom fail >&2; exit 1; }; \
        done
 END
index 5a0ef379b76c393e0ee66da63a20b4f8aacf6f74..6ce2e2b5dfdc26fe0a4d7c486cf1c1c7a5a5eee8 100755 (executable)
@@ -39,7 +39,7 @@ test-grep:
        grep '=GrEp$(empty)Me_am=' Makefile
        grep '=GrEp$(empty)Me_dep=' Makefile
 test-distcommon:
-       echo ' ' $(DIST_COMMON) ' ' | grep '[ /]Makefile.dep '
+       echo ' ' $(am__dist_common) ' ' | grep '[ /]Makefile.dep '
 test-distdir: distdir
        test -f $(distdir)/Makefile.dep
 END
index 1b84d8046c40116503c6622339495ef1b716f146..0d3cc1b9b21d82de12149e2f7c23e4f637b37e13 100755 (executable)
@@ -33,10 +33,10 @@ mkdir subdir
 : > Makefile.am
 : > subdir/foo
 cat > subdir/Makefile.am << 'END'
-# DIST_COMMON should contain 'foo', not 'subdir/foo'.
+# am__dist_common should contain 'foo', not 'subdir/foo'.
 test:
-       case '$(DIST_COMMON)' in *subdir/foo*) exit 1;; *) exit 0;; esac
-       echo ' ' $(DIST_COMMON) ' ' | grep '[ /]foo '
+       case '$(am__dist_common)' in *subdir/foo*) exit 1;; *) exit 0;; esac
+       echo ' ' $(am__dist_common) ' ' | grep '[ /]foo '
 .PHONY: test
 END
 
index 9dc2f15b1cf7d1659985ee3af36c77f35b5a95a7..1ba8534c64cf847c1e01dcf830e24a5dc4afdcf5 100755 (executable)
@@ -27,8 +27,8 @@ END
 cat > Makefile.am << 'END'
 .PHONY: test1 test2
 test1:
-       @echo DIST_COMMON = $(DIST_COMMON)
-       echo ' ' $(DIST_COMMON) ' ' | grep '[ /]acconfig\.h '
+       @echo am__dist_common = $(am__dist_common)
+       echo ' ' $(am__dist_common) ' ' | grep '[ /]acconfig\.h '
 test2: distdir
        ls -l $(distdir)/*
        test -f $(distdir)/acconfig.h
index 2feaae582246461f127beeb6a92aa1d4e8e8091d..50bf0578b36a55eb860ee2fe0b4bd042c2d4f824 100755 (executable)
@@ -27,11 +27,11 @@ END
 cat > Makefile.am << 'END'
 .PHONY: test0 test1 test2
 test0:
-       @echo DIST_COMMON = $(DIST_COMMON)
-       echo ' ' $(DIST_COMMON) ' ' | grep '[ /]one\.h\.in '
-       echo ' ' $(DIST_COMMON) ' ' | grep '[ /]two\.h\.in '
+       @echo am__dist_common = $(am__dist_common)
+       echo ' ' $(am__dist_common) ' ' | grep '[ /]one\.h\.in '
+       echo ' ' $(am__dist_common) ' ' | grep '[ /]two\.h\.in '
        : Processed header files should not be distributed.
-       if echo ' ' $(DIST_COMMON) ' ' | grep '\.h '; then \
+       if echo ' ' $(am__dist_common) ' ' | grep '\.h '; then \
          exit 1; \
        else \
          exit 0; \
index e81e0978309afc434654b32623b0718ca3e4fa98..39ad48effe5a6b1beaf22c3786b354014278751e 100755 (executable)
@@ -43,7 +43,7 @@ SUBDIRS = subdir
 check-local: test1 test2
 .PHONY: test1 test2
 test1:
-       echo ' ' $(DIST_COMMON) ' ' | grep '[ /]config/depcomp '
+       echo ' ' $(am__dist_common) ' ' | grep '[ /]config/depcomp '
 test2: distdir
        ls -l $(distdir)/*
        test -f $(distdir)/config/depcomp
index 9f7e8eee7bb89f9962b97b003b104fa4f9fa5978..b8db708ebe177a68e487330717082c14d74762bc 100755 (executable)
@@ -47,10 +47,10 @@ END
     SUBDIRS = subdir
     test: distdir
        ls -l $(distdir) $(distdir)/*      ;: For debugging.
-       @echo DIST_COMMON = $(DIST_COMMON) ;: Likewise.
-       echo ' ' $(DIST_COMMON) ' ' | grep '[ /]$(auxdir)foo.txt '
-       echo ' ' $(DIST_COMMON) ' ' | grep '[ /]$(auxdir)bar.sh '
-       echo ' ' $(DIST_COMMON) ' ' | grep '[ /]$(auxdir)zardoz '
+       @echo am__dist_common = $(am__dist_common) ;: Likewise.
+       echo ' ' $(am__dist_common) ' ' | grep '[ /]$(auxdir)foo.txt '
+       echo ' ' $(am__dist_common) ' ' | grep '[ /]$(auxdir)bar.sh '
+       echo ' ' $(am__dist_common) ' ' | grep '[ /]$(auxdir)zardoz '
        test -f $(distdir)/$(auxdir)foo.txt
        test -f $(distdir)/$(auxdir)bar.sh
        test -f $(distdir)/$(auxdir)zardoz
index 4da74d05cd508d50c0f51368a26448767bf1ce5c..46e516a63a440ecefae5405f2d349334859edcbf 100755 (executable)
@@ -52,7 +52,7 @@ test -f depcomp
 # FIXME: 'distcom*.test' files should be factored out in a common
 # FIXME: subroutine in 'defs'...
 sed -n -e "
-  /^DIST_COMMON =.*\\\\$/ {
+  /^am__dist_common =.*\\\\$/ {
     :loop
     p
     n
index 4b86f928d048831fad34a0f46104739e54cb69f8..141cd79aa53a15015fd8166e1e5e9742147693e2 100755 (executable)
@@ -14,7 +14,7 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-# Test to make sure that depcomp and compile are added to DIST_COMMON.
+# Test to make sure that depcomp and compile are added to am__dist_common.
 # Report from Pavel Roskin.  Report of problems with '--no-force' from
 # Scott James Remnant (Debian #206299)
 
@@ -54,7 +54,7 @@ for opt in '' --no-force; do
     # FIXME: 'distcom*.test' files should be factored out in a common
     # FIXME: subroutine in 'defs'...
     sed -n -e "
-      /^DIST_COMMON =.*\\\\$/ {
+      /^am__dist_common =.*\\\\$/ {
         :loop
         p
         n
@@ -73,7 +73,7 @@ for opt in '' --no-force; do
   cat subdir/dc.txt # Likewise.
 
   $FGREP ' $(top_srcdir)/depcomp ' subdir/dc.txt
-  # The 'compile' script will be listed in the DIST_COMMON of the top-level
+  # The 'compile' script will be listed in the am__dist_common of the top-level
   # Makefile because it's required in configure.ac (by AM_PROG_CC_C_O).
   $FGREP ' $(top_srcdir)/compile ' dc.txt || $FGREP ' compile ' dc.txt
 
index 34ad7096e51968132c7204b3c890d050c5f56943..8ed0809a4cbe97a19e46f88abf166af6b0c745f1 100755 (executable)
@@ -36,7 +36,7 @@ $AUTOMAKE --add-missing --gnu >output 2>&1 || { cat output; Exit 1; }
 cat output
 grep README output && Exit 1
 
-sed -n -e '/^DIST_COMMON =.*\\$/ {
+sed -n -e '/^am__dist_common =.*\\$/ {
    :loop
    p
    n
@@ -46,7 +46,7 @@ sed -n -e '/^DIST_COMMON =.*\\$/ {
    t loop
    p
    n
-   }' -e '/^DIST_COMMON =/ p' Makefile.in | grep README
+   }' -e '/^am__dist_common =/ p' Makefile.in | grep README
 
 
 # Should warn about missing README.
index 18f8b3385c478d38b69070ee7d849928e009c635..c8cc2c5fd77d11e4b1759390a7433293bbe79a51 100755 (executable)
@@ -45,7 +45,8 @@ mkdir tests
 cat > Makefile.am << 'END'
 .PHONY: test1 test 2
 test1:
-       for x in $(DISTFILES); do echo $$x; done | grep 'tests/' > lst
+       for x in $(am__dist_files); do echo $$x; done \
+         | grep 'tests/' > lst
        cat lst # For debugging.
        test `wc -l <lst` -eq 1
 test2: distdir
index b8290dde93da1a521d0935a7aa11c2b670c8cfc4..744039758269463ecedf189ca5e2d8b2b2b13288 100755 (executable)
@@ -49,13 +49,14 @@ SUBDIRS = tests
 test: distdir
        test -f $(distdir)/tests/wrapper.in
 check-local: test
-       for x in $(DISTFILES); do echo $$x; done \
+       for x in $(am__dist_files); do echo $$x; done \
          | grep tests && exit 1; :
 END
 
 cat > tests/Makefile.am <<'END'
 check-local:
-       for x in $(DISTFILES); do echo $$x; done | grep wrapper.in > lst
+       for x in $(am__dist_files); do echo $$x; done \
+         | grep wrapper.in > lst
        cat lst # For debugging.
        test `wc -l <lst` -eq 1
 END
index 079de24bba532757118a363dabb6ed7d4661fd95..b8e16ffb442eaeecc48c138ba323a286c1bb6920 100755 (executable)
@@ -18,8 +18,8 @@
 # sure *srcdir is properly handled.  Note that using './', as in
 #   EXTRA_DIST = ./joe
 # does not work portably: it fails with HP-UX and Tru64 make.
-# Also test DISTFILES containing a directory and a file in it,
-# and repeated directories.
+# Also test the situation when the lsit of distributed files contains
+# a directory and a file in it, and repeated directories.
 
 . ./defs || Exit 1
 
index 1e31cd2010b0185ffb39fcb7aef8a517365df96c..abd1c563b84263c48485940c20f0af6223bb722e 100755 (executable)
@@ -35,7 +35,7 @@ len=`grep '^srcdir' Makefile.in | wc -l`
 test $len -eq 1
 
 # Also make sure include file is distributed.
-sed -n -e '/^DIST_COMMON =.*\\$/ {
+sed -n -e '/^am__dist_common =.*\\$/ {
    :loop
    p
    n
@@ -45,6 +45,6 @@ sed -n -e '/^DIST_COMMON =.*\\$/ {
    t loop
    p
    n
-   }' -e '/^DIST_COMMON =/ p' Makefile.in | grep Will_Be_Included_In_Makefile
+   }' -e '/^am__dist_common =/ p' Makefile.in | grep Will_Be_Included_In_Makefile
 
 :
index cd74f82a5168fe9b0ce069d8735a706bc489fb0a..b159f02315b481adbbdc1b48c5d8b3b64f4edd5b 100755 (executable)
@@ -25,8 +25,7 @@ pkgdata_DATA =
 .PHONY: test
 test: distdir
        find $(distdir) ;: For debugging.
-       echo ' ' $(DISTFILES) ' ' | grep '[ /]install-sh '
-       echo ' ' $(DIST_COMMON) ' ' | grep '[ /]install-sh '
+       echo ' ' $(am__dist_common) ' ' | grep '[ /]install-sh '
        test -f $(distdir)/install-sh
 END
 
index 46f0f9841e92f96d0766bb76524ef4fc47e7088f..1e25229987a53d8aeb07f0a525d7e9dcf60b5bc0 100755 (executable)
@@ -39,10 +39,10 @@ check-local: test1 test2 test3
 test1: all
        $(AR) tv libtu.a
 test2:
-       @echo DIST_COMMON = $(DIST_COMMON)
-       echo ' ' $(DIST_COMMON) ' ' | grep '[ /]basename\.c '
-       echo ' ' $(DIST_COMMON) ' ' | grep '[ /]dirname\.c '
-       echo ' ' $(DIST_COMMON) ' ' | grep '[ /]am__dummy_function\.c '
+       @echo am__dist_common = $(am__dist_common)
+       echo ' ' $(am__dist_common) ' ' | grep '[ /]basename\.c '
+       echo ' ' $(am__dist_common) ' ' | grep '[ /]dirname\.c '
+       echo ' ' $(am__dist_common) ' ' | grep '[ /]am__dummy_function\.c '
 test3: distdir
        test -f $(distdir)/basename.c
        test -f $(distdir)/dirname.c
index 92cc2f75a9af967e1938f5f2f92c48454c061a01..931b5c87c70fb3209585aa2df823f41f9f89a4a6 100755 (executable)
@@ -34,7 +34,7 @@ $ACLOCAL
 $AUTOMAKE
 
 grep '^am_eyeball_OBJECTS' Makefile.in
-grep '^DIST_SOURCES =' Makefile.in
-grep '^DIST_SOURCES =.*nodist' Makefile.in && Exit 1
+grep '^am__dist_sources =' Makefile.in
+grep '^am__dist_sources =.*nodist' Makefile.in && Exit 1
 
 :
index 23becc12de6196ecb7a035199ee314c1f269339a..07e90472439d7a8e544630dfdeded117bf471bc7 100755 (executable)
@@ -32,6 +32,6 @@ $ACLOCAL
 $AUTOMAKE
 
 grep '^dist:' Makefile.in && Exit 1
-grep '^DIST_SOURCES =' Makefile.in && Exit 1
+grep 'am__dist_sources' Makefile.in && Exit 1
 
 :
index ffe4a81d79a0616f86f7bc13a16171c1f0ea26a6..2f95a995cb8423ab38a140de6c97bb5891694a92 100755 (executable)
--- a/t/pr2.sh
+++ b/t/pr2.sh
@@ -22,7 +22,7 @@
 # like the following (among the Makefiles)
 #       README.foo:templ/README.foo.in
 # the generated dist target in the Makefile.in fails,
-# because DIST_COMMON will contain templ/README.foo.in
+# because am__dist_common will contain templ/README.foo.in
 # and the dist target will try to copy templ/README.foo.in
 # to the distribution directory before it creates a templ
 # subdirectory in the distribution directory.
index 81528b2af255f76cd8b41fb278aeb1a729095470..8bf5823f55c078a24ce202424102503244e399df 100755 (executable)
@@ -61,10 +61,10 @@ $ACLOCAL
 $AUTOMAKE --gnu
 
 # Make sure that depcomp is *not* included in the definition
-# of DIST_COMMON in lib/Makefile.in.  If you change this test
-# so that more files are included in lib's DIST_COMMON definition,
+# of am__dist_common in lib/Makefile.in.  If you change this test
+# so that more files are included in lib's am__dist_common definition,
 # then you must handle the case in which depcomp is listed on a
 # continued line.
-grep '^DIST_COMMON.*depcomp' lib/Makefile.in && Exit 1
+grep '^am__dist_common.*depcomp' lib/Makefile.in && Exit 1
 
 :
index 7183a9146a2aeb391db3b9b992d7ebdcc9f3fcd4..6e9bb6f6afe511e329aa984eee521d019c5817f2 100755 (executable)
@@ -47,8 +47,8 @@ $MAKE test
 
 # This is unrelated to the rest of this test.  But while we are
 # at it, make sure we don't use am__helldl_SOURCES_DIST here, since
-# it's not needed.  DIST_SOURCES should contain $(helldl_SOURCES).
+# it's not needed.  am__dist_sources should contain $(helldl_SOURCES).
 grep am__helldl_SOURCES_DIST Makefile && Exit 1
-grep 'DIST_SOURCES.*\$(helldl_SOURCES)' Makefile
+grep 'am__dist_sources.*\$(helldl_SOURCES)' Makefile
 
 :
index fb4e540aff9a16f532c3ea1ae855e0c1fd33d48c..78076cf761331ac50c7f5c03bc8c45b3f0e6f587 100755 (executable)
@@ -61,7 +61,7 @@ END
     AUTOMAKE_OPTIONS = $am_opts
     check-local: test-sub
     test-sub:
-       echo ' ' \$(DIST_COMMON) ' ' | grep '[ /]$test_driver '
+       echo ' ' \$(am__dist_common) ' ' | grep '[ /]$test_driver '
     TESTS = foo.test
     EXTRA_DIST = \$(TESTS)
 END
index e6667cbedea1f4c5030c6f46f6109e4bd09d2fe8..66d925f249ff12b24de2e9e2716c4778ffb9b285 100755 (executable)
@@ -28,8 +28,8 @@ cat > Makefile.am << 'END'
 info_TEXINFOS = textutils.texi
 .PHONY: test1 test2
 test1:
-       @echo DISTFILES = $(DISTFILES)
-       echo ' ' $(DISTFILES) ' ' | grep '[ /]texinfo\.tex '
+       @echo am__dist_files = $(am__dist_files)
+       echo ' ' $(am__dist_files) ' ' | grep '[ /]texinfo\.tex '
 test2: distdir
        ls -l $(distdir)
        test -f $(distdir)/texinfo.tex
index 0daebd9a893df11a13889a719dae6dd8edb4ea64..70a9e945db5d9674d3b4de192dd56c4bc1d7b4a0 100755 (executable)
@@ -27,8 +27,8 @@ cat > Makefile.am << 'END'
 info_TEXINFOS = textutils.texi
 .PHONY: test
 test:
-       @echo DISTFILES = $(DISTFILES)
-       case '$(DISTFILES)' in *'~'*) exit 1;; *) exit 0;; esac
+       @echo am__dist_files = $(am__dist_files)
+       case '$(am__dist_files)' in *'~'*) exit 1;; *) exit 0;; esac
 END
 
 : > texinfo.tex
index 4b186bc38b2bd8af102b343f4092b98ac8038dcb..6e5403ab14f21d1395113a4c86dc17ca7f367374 100755 (executable)
@@ -32,8 +32,8 @@ cat > Makefile.am << 'END'
 info_TEXINFOS = textutils.texi
 .PHONY: test1 test2
 test1:
-       @echo DISTFILES = $(DISTFILES)
-       echo ' ' $(DISTFILES) ' ' | grep '[ /]auxdir/texinfo\.tex '
+       @echo am__dist_files = $(am__dist_files)
+       echo ' ' $(am__dist_files) ' ' | grep '[ /]auxdir/texinfo\.tex '
 test2: distdir
        ls -l $(distdir)/*
        test -f $(distdir)/auxdir/texinfo.tex
index 9dd3e67121752395e48a21618480c42ae3c487f8..c8736eafe4b5a53edb18e44a54f292d97b540726 100755 (executable)
@@ -41,7 +41,7 @@ cat > Makefile.am << 'END'
 info_TEXINFOS = foobar.texi quux.texi zardoz.texi
 .PHONY: echo-distfiles
 echo-distfiles:
-       @echo ' ' $(DISTFILES) ' '
+       @echo ' ' $(am__dist_files) ' '
 END
 
 cat > foobar.texi << 'END'
@@ -94,7 +94,7 @@ do_check ()
   vmonth=`grep '^@set UPDATED ' $srcdir/$vfile.texi | awk '{print $4, $5}'`
   grep "^@set UPDATED-MONTH $vmonth$" $srcdir/$vfile.texi
   # Check that the vers*.texi file is distributed according
-  # to $(DISTFILES).
+  # to $(am__dist_files).
   $MAKE echo-distfiles # For debugging.
   $MAKE -s echo-distfiles | grep "[ /]$vfile\\.texi"
 }
index 6038444b5cbbaabd72a088c9c3877a6e924bc3c9..8023de2eda380913372ee80aa176d5ece9886e6c 100755 (executable)
@@ -62,8 +62,8 @@ test-grepinfo:
        cat $(srcdir)/foo.info | grep 'GREPDATE=$(my_date_rx)='
        cat $(srcdir)/foo.info | grep 'GREPMONTH=$(my_month_rx)='
 test-distfiles:
-       @echo DISTFILES = $(DISTFILES)
-       echo ' ' $(DISTFILES) ' ' | grep '[ /]version.texi '
+       @echo am__dist_files = $(am__dist_files)
+       echo ' ' $(am__dist_files) ' ' | grep '[ /]version.texi '
 test-distdir: distdir
        ls -l $(distdir)
        diff $(srcdir)/version.texi $(distdir)/version.texi
index 8bc8c4b92e9c4cbe70bf8bc17366010fb3aaf405..732546147b9ad60eb2418e2514b1da447abba8f4 100755 (executable)
@@ -34,7 +34,7 @@ bar_YFLAGS = -v
 
 .PHONY: echo-distcom
 echo-distcom:
-       @echo ' ' $(DIST_COMMON) ' '
+       @echo ' ' $(am__dist_common) ' '
 END
 
 cat > parse.y << 'END'
index 80ac2ee29f5b3731121c251ac9904821a282e271..246f1ad9096e87433c8c080331df57ed1212566a 100755 (executable)
@@ -38,7 +38,7 @@ foo4_YFLAGS = $(foo3_YFLAGS)
 
 .PHONY: echo-distcom
 echo-distcom:
-       @echo ' ' $(DIST_COMMON) ' '
+       @echo ' ' $(am__dist_common) ' '
 END
 
 cat > parse1.yy << 'END'
index e82f335f1c3e7049acac9bf7a368626b6137597d..a374df0a4b781428e731bec6dc1e0c1ea8615d27 100755 (executable)
@@ -39,7 +39,7 @@ bin_PROGRAMS = zardoz
 zardoz_SOURCES = parse.y main.c
 .PHONY: echo-distcom
 echo-distcom:
-       @echo ' ' $(DIST_COMMON) ' '
+       @echo ' ' $(am__dist_common) ' '
 END
 cp foo/Makefile.am bar/Makefile.am
 cp foo/Makefile.am baz/Makefile.am
index 5ec199041460d2a4d473f2fc5830144ca9c2fac4..f1ec2c376ea43c73e453d1eea71e6a81df4198ad 100755 (executable)
@@ -66,7 +66,7 @@ mkdir foo bar baz qux baz/sub
 cat > Makefile.am <<'END'
 .PHONY: echo-distcom
 echo-distcom:
-       @echo ' ' $(DIST_COMMON) ' '
+       @echo ' ' $(am__dist_common) ' '
 END
 cp Makefile.am foo/Makefile.am
 cp Makefile.am bar/Makefile.am