automake-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[automake-commit] 02/02: no-dist-built-sources: fix-up


From: Jim Meyering
Subject: [automake-commit] 02/02: no-dist-built-sources: fix-up
Date: Sun, 11 Jul 2021 22:14:11 -0400

meyering pushed a commit to branch master
in repository automake.

View the commit online:
https://git.savannah.gnu.org/gitweb/?p=automake.git;a=commitdiff;h=314c55f0633ab80c43c4f97e1b1f954cff776f05

commit 314c55f0633ab80c43c4f97e1b1f954cff776f05
Author: Jim Meyering <meyering@fb.com>
AuthorDate: Sun Jul 11 18:34:22 2021 -0700

    no-dist-built-sources: fix-up
    
    * bin/automake.in (preprocess_file): Process new option here,
    (handle_dist): ... not here.
    * lib/Automake/Options.pm (_is_valid_easy_option):
    Remove pure-dist.
    * lib/am/distdir.am: Don't factor out the duplicate-looking
    $(MAKE)... command.  Otherwise, many dist-using tests would fail
    for me, e.g., t/aclocal-amflags.sh.
---
 bin/automake.in         | 5 ++---
 lib/Automake/Options.pm | 1 -
 lib/am/distdir.am       | 3 ++-
 3 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/bin/automake.in b/bin/automake.in
index fde572c..f6ebe30 100644
--- a/bin/automake.in
+++ b/bin/automake.in
@@ -3920,9 +3920,7 @@ sub handle_dist ()
   $output_rules .= file_contents ('distdir',
                                  new Automake::Location,
                                  %transform,
-                                 FILENAME_FILTER => $filename_filter,
-                                 DIST_BUILT_SOURCES
-                                   => ! option 'no-dist-built-sources');
+                                 FILENAME_FILTER => $filename_filter);
 }
 
 
@@ -6865,6 +6863,7 @@ sub preprocess_file
                 'SHAR'        => !! option 'dist-shar',
                 'ZIP'         => !! option 'dist-zip',
                 'ZSTD'        => !! option 'dist-zstd',
+                'DIST_BUILT_SOURCES' => !! option 'dist-built-sources',
 
                 'INSTALL-INFO' =>  ! option 'no-installinfo',
                 'INSTALL-MAN'  =>  ! option 'no-installman',
diff --git a/lib/Automake/Options.pm b/lib/Automake/Options.pm
index 6c07e50..622b9ce 100644
--- a/lib/Automake/Options.pm
+++ b/lib/Automake/Options.pm
@@ -290,7 +290,6 @@ sub _is_valid_easy_option ($)
     no-installman
     no-texinfo.tex
     nostdinc
-    pure-dist
     readme-alpha
     serial-tests
     parallel-tests
diff --git a/lib/am/distdir.am b/lib/am/distdir.am
index 3b60b6e..9bd3028 100644
--- a/lib/am/distdir.am
+++ b/lib/am/distdir.am
@@ -77,10 +77,11 @@ endif %?SUBDIRS%
 
 if %?DIST_BUILT_SOURCES%
 distdir:
+       $(MAKE) $(AM_MAKEFLAGS) distdir-am
 else !%?DIST_BUILT_SOURCES%
 distdir: $(BUILT_SOURCES)
-endif !%?DIST_BUILT_SOURCES%
        $(MAKE) $(AM_MAKEFLAGS) distdir-am
+endif !%?DIST_BUILT_SOURCES%
 
 distdir-am: $(DISTFILES)
 ##



reply via email to

[Prev in Thread] Current Thread [Next in Thread]