]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
Merge branch 'master' into ng/master
authorStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 16 Jan 2013 13:28:43 +0000 (14:28 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 16 Jan 2013 13:28:43 +0000 (14:28 +0100)
* master:
  compat: restore AM_PROG_MKDIR, again
  subdir-objects: complain if it isn't enabled
  plans: update w.r.t. latest changes
  ywrap: remove an obsolete FIXME comment
  ywrap: style fixes (no semantic change intended)
  convenience: "make lint" as an alias for "make maintainer-check"
  docs: typofix in manual
  coverage: using multiple lexers in a single program
  texi: no longer support split info files

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
21 files changed:
1  2 
automake.in
doc/automake-ng.texi
lib/ylwrap
m4/init.m4
maintainer/syntax-checks.mk
t/cscope.tap
t/depcomp8a.sh
t/depcomp8b.sh
t/ext2.sh
t/extra-portability.sh
t/fort2.sh
t/fort4.sh
t/fort5.sh
t/lex-line.sh
t/libtool3.sh
t/subpkg-yacc.sh
t/subpkg.sh
t/vala-libs.sh
t/vala-non-recursive-setup.sh
t/yacc-grepping2.sh
t/yacc-line.sh

diff --cc automake.in
index 1021822045630f6c8d6b2a9899e4fcea47097bc1,0473af4f7f2f959cdada59b3b0a14d1f56278b0b..4f10712f6596579e8fb655f5ff473ba28fe113ed
@@@ -1669,10 -1782,39 +1669,9 @@@ sub handle_single_transform ($$$$$%
                $renamed = 1;
            }
  
--          # If rewrite said it was ok, put the object into a
--          # subdir.
 -          if ($directory ne '')
 -          {
 -              if ($r == LANG_SUBDIR)
 -                {
 -                  $object = $directory . '/' . $object;
 -                }
 -              else
 -                {
 -                  # Since the next major version of automake (1.14) will
 -                  # make the behaviour so far only activated with the
 -                  # 'subdir-object' option mandatory, it's better if we
 -                  # start warning users not using that option.
 -                  # As suggested by Peter Johansson, we strive to avoid
 -                  # the warning when it would be irrelevant, i.e., if
 -                  # all source files sit in "current" directory.
 -                  msg_var 'unsupported', $var,
 -                          "source file '$full' is in a subdirectory,"
 -                          . "\nbut option 'subdir-objects' is disabled";
 -                  msg 'unsupported', INTERNAL, <<'EOF', uniq_scope => US_GLOBAL;
 -possible forward-incompatibility.
 -At least a source file is in a subdirectory, but the 'subdir-objects'
 -automake option hasn't been enabled.  For now, the corresponding output
 -object file(s) will be placed in the top-level directory.  However,
 -this behaviour will change in future Automake versions: they will
 -unconditionally cause object files to be placed in the same subdirectory
 -of the corresponding sources.
 -You are advised to start using 'subdir-objects' option throughout your
 -project, to avoid future incompatibilities.
 -EOF
 -                }
 -          }
++          # If rewrite said it was ok, put the object into a subdir.
 +          $object = $directory . '/' . $object
 +            unless $directory eq '';
  
            # If the object file has been renamed (because per-target
            # flags are used) we cannot compile the file with an
Simple merge
diff --cc lib/ylwrap
Simple merge
diff --cc m4/init.m4
Simple merge
index 454341e3443d0fb62923f7a642ccc673678893fa,80e4e7e746cbc3cead8539660ceadc8438d1860b..afbba5ece3c22977e54e0e4c0ee26f5a420f21bd
@@@ -617,3 -534,11 +617,7 @@@ sc_at_in_texi
  $(syntax_check_rules): automake aclocal
  maintainer-check: $(syntax_check_rules)
  .PHONY: maintainer-check $(syntax_check_rules)
 -## Check that the list of tests given in the Makefile is equal to the
 -## list of all test scripts in the Automake testsuite.
 -maintainer-check: maintainer-check-list-of-tests
 -
+ # I'm a lazy typist.
+ lint: maintainer-check
+ .PHONY: lint
diff --cc t/cscope.tap
Simple merge
diff --cc t/depcomp8a.sh
index aa46c4dcf5e546fb95e75429a65e0cd0f6af9657,d6c73edb7335f3e40239b71dea7f4dce84668e74..626ab8c894194dbcc47315406cd4aa90d681b947
@@@ -48,11 -48,29 +48,13 @@@ int bar (void
  END
  
  $ACLOCAL
- $AUTOMAKE -a
+ # FIXME: stop disabling the warnings in the 'unsupported' category
+ # FIXME: once the 'subdir-objects' option has been mandatory.
+ $AUTOMAKE -a -Wno-unsupported
  grep include Makefile.in # For debugging.
  grep 'include.*\./\$(DEPDIR)/foo\.P' Makefile.in
 -grep 'include.*\./\$(DEPDIR)/bar\.P' Makefile.in
 -grep 'include.*/\./\$(DEPDIR)' Makefile.in && exit 1
  
 -$AUTOCONF
 -# Don't reject slower dependency extractors, for better coverage.
 -./configure --enable-dependency-tracking
 -$MAKE
 -cross_compiling || ./zardoz
 -DISTCHECK_CONFIGURE_FLAGS='--enable-dependency-tracking' $MAKE distcheck
 -
 -# Try again with subdir-objects option.
 -
 -echo AUTOMAKE_OPTIONS = subdir-objects >> Makefile.am
 -
 -$AUTOMAKE
 -grep include Makefile.in # For debugging.
 -grep 'include.*\./\$(DEPDIR)/foo\.P' Makefile.in
 -grep 'include.*[^a-zA-Z0-9_/]sub/\$(DEPDIR)/bar\.P' Makefile.in
 +LC_ALL=C grep 'include.*[^a-zA-Z0-9_/]sub/\$(DEPDIR)/bar\.P' Makefile.in
  $EGREP 'include.*/(\.|sub)/\$\(DEPDIR\)' Makefile.in && exit 1
  
  $AUTOCONF
diff --cc t/depcomp8b.sh
Simple merge
diff --cc t/ext2.sh
Simple merge
Simple merge
diff --cc t/fort2.sh
Simple merge
diff --cc t/fort4.sh
Simple merge
diff --cc t/fort5.sh
Simple merge
diff --cc t/lex-line.sh
Simple merge
diff --cc t/libtool3.sh
Simple merge
Simple merge
diff --cc t/subpkg.sh
Simple merge
diff --cc t/vala-libs.sh
Simple merge
Simple merge
index 8231fbf9a9357bad4fff2a08bc6af488fa6c56a8,3c5da22557194dabd7959fe22210c136b5f8f8cc..b00ece765524e379c9b351db7661377517d33d9d
@@@ -40,15 -61,20 +42,17 @@@ grep '^sub/maude\.c:.*maude\.y' Makefil
  cat > Makefile.am << 'END'
  bin_PROGRAMS = maude
  maude_SOURCES = sub/maude.y
 -## A particularly trickey case.
 +## A particularly tricky case.
  maude_YFLAGS = -d
  END
 -# FIXME: stop disabling the warnings in the 'unsupported' category
 -# FIXME: once the 'subdir-objects' option has been mandatory.
 -$AUTOMAKE -a -Wno-unsupported
 +$AUTOMAKE -a
 +grep '^sub/maude-maude\.c:.*sub/maude\.y' Makefile.in
  # Rule should use maude_YFLAGS.
  grep 'AM_YFLAGS.*maude' Makefile.in && exit 1
 -
  # Silly regression.
  grep 'maudec' Makefile.in && exit 1
 -
  # Make sure the .o file is required.
  grep '^am_maude_OBJECTS.*maude' Makefile.in
  
diff --cc t/yacc-line.sh
Simple merge