[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Automake-commit] [SCM] GNU Automake branch, ng/master, updated. v1.12.1
From: |
Stefano Lattarini |
Subject: |
[Automake-commit] [SCM] GNU Automake branch, ng/master, updated. v1.12.1-324-g50b2839 |
Date: |
Sat, 09 Jun 2012 09:05:53 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Automake".
http://git.sv.gnu.org/gitweb/?p=automake.git;a=commitdiff;h=50b2839e3a2b0e79ac126918180ef460071132bb
The branch, ng/master has been updated
via 50b2839e3a2b0e79ac126918180ef460071132bb (commit)
via 765c3d960981344c0332137153255b24f65b0932 (commit)
via 3dd1fa303d373970aeb833b4bd0266891f246d19 (commit)
via 0eea1d41f855efe5883095959c7d54f11bd633fe (commit)
from fd417d2be3b26eb6cd99e828bb4bff0b8572087a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 50b2839e3a2b0e79ac126918180ef460071132bb
Merge: fd417d2 765c3d9
Author: Stefano Lattarini <address@hidden>
Date: Sat Jun 9 10:25:10 2012 +0200
Merge branch 'ng/depcomp-unify-o-obj-rules' into ng/master
* ng/depcomp-unify-o-obj-rules:
[ng] depcomp: remove unused variable '$source' from the depcomp script
[ng] depcomp: unify rules for '.o' and '.obj' objects
[ng] depcomp: prefer make automatic variables over automake transforms
+ Extra non-trivial edits:
* t/libtool3.sh: Also look for the '.$(OBJEXT)' extension when grepping
the generated Makefile to ensure no explicit rules for the C compilation
has been emitted (only pattern rules should have been).
* t/subdir3.sh: Remove, since the changes done to it in the branch
'ng/depcomp-unify-o-obj-rules' have been obsoleted by the general
semantic changes done in the 'ng/subdir-objects' branch (where this
test had indeed been removed).
* t/subobj4.sh: Likewise.
Signed-off-by: Stefano Lattarini <address@hidden>
commit 765c3d960981344c0332137153255b24f65b0932
Author: Stefano Lattarini <address@hidden>
Date: Thu Jun 7 03:06:10 2012 +0200
[ng] depcomp: remove unused variable '$source' from the depcomp script
* lib/am/depend2.am (%.c -> %.$(OBJEXT) compilation recipes): Do not
pass the path of the source file in the 'source' environment variable
to the invocation of the 'depcomp' script.
* lib/depcomp: Don't document the 'source' environment variable, and
do not abort if it is not set; that variable wasn't actually used
anyway.
Signed-off-by: Stefano Lattarini <address@hidden>
commit 3dd1fa303d373970aeb833b4bd0266891f246d19
Author: Stefano Lattarini <address@hidden>
Date: Thu Jun 7 02:26:17 2012 +0200
[ng] depcomp: unify rules for '.o' and '.obj' objects
This change just reduces code duplication and size of the generated
Makefiles a little. No actual semantic change is intended.
* automake.in (handle_languages): Drop the '%OBJOBJ%' transform.
* lib/am/depend2.am (am__o_src): New, return the path of the source
file corresponding to the target compiled object unchanged when the
object has the '.o' suffix, and returns a proper invocation of
'$(CYGPATH_W)' on that same source file when the object has the
'.obj' suffix.
Using the new $(am__o_src) function, unify rules for the creation of
'.o' and '.obj' objects into a rule for the creation of '.$(OBJEXT)'
objects.
* t/ext.sh: Adjust grepping checks.
* t/ext2.sh: Likewise.
* t/libtool3.sh: Likewise.
* t/objc-basic.sh: Likewise.
* t/objcxx-basic.sh: Likewise.
* t/silent-many-gcc.sh: Likewise.
* t/silent-many-generic.sh: Likewise.
* t/specflg6.sh: Likewise.
* t/subdir3.sh: Likewise.
* t/subobj4.sh: Likewise.
* t/suffix.sh: Likewise.
* t/suffix2.sh: Likewise.
* t/empty2.sh: Enhance a little.
* t/empty3.sh: Likewise.
* t/specflg.sh: Likewise, and adjust comments.
* t/specflg2.sh: Likewise.
* t/pr87.sh: Remove an obsolete check (obsolete since our switch
from suffix rules to pattern rules for C compilation recipes).
Signed-off-by: Stefano Lattarini <address@hidden>
commit 0eea1d41f855efe5883095959c7d54f11bd633fe
Author: Stefano Lattarini <address@hidden>
Date: Thu Jun 7 01:52:37 2012 +0200
[ng] depcomp: prefer make automatic variables over automake transforms
* lib/am/depend2.am: Here, in several recipes.
* t/specflg3.sh: Adjust grepping checks
* t/subobj4.sh: Relax grepping checks.
Signed-off-by: Stefano Lattarini <address@hidden>
-----------------------------------------------------------------------
Summary of changes:
automake.in | 2 --
lib/am/depend2.am | 37 +++++++++----------------------------
lib/depcomp | 5 ++---
t/empty2.sh | 5 +++--
t/empty3.sh | 4 +++-
t/ext.sh | 4 ++--
t/ext2.sh | 2 +-
t/libtool3.sh | 2 +-
t/objc-basic.sh | 2 +-
t/objcxx-basic.sh | 2 +-
t/pr87.sh | 13 -------------
t/silent-many-gcc.sh | 2 +-
t/silent-many-generic.sh | 2 +-
t/specflg.sh | 10 ++++++----
t/specflg2.sh | 15 +++++++++------
t/specflg3.sh | 2 +-
t/specflg6.sh | 4 ++--
t/suffix.sh | 14 +++++---------
t/suffix2.sh | 15 ++++++---------
19 files changed, 54 insertions(+), 88 deletions(-)
diff --git a/automake.in b/automake.in
index 21a02a6..ed98397 100644
--- a/automake.in
+++ b/automake.in
@@ -1385,7 +1385,6 @@ sub handle_languages
SOURCE => '$<',
SOURCEFLAG => $sourceflags{$ext} || '',
OBJ => '$@',
- OBJOBJ => '$@',
LTOBJ => '$@',
COMPILE => '$(' . $lang->compiler . ')',
@@ -1450,7 +1449,6 @@ sub handle_languages
# we are actually building a new source
# file -- e.g. via yacc.
OBJ => "$obj$myext",
- OBJOBJ => "$obj.obj",
LTOBJ => "$obj.lo",
VERBOSE => $verbose,
diff --git a/lib/am/depend2.am b/lib/am/depend2.am
index faf685a..38f30bf 100644
--- a/lib/am/depend2.am
+++ b/lib/am/depend2.am
@@ -38,47 +38,28 @@ am__depdir = $(dir $@)/$(DEPDIR)
am__depbase = $(am__depdir)/$(basename $(notdir $@))
## Avoid useless forks when possible.
am__ensure_depdir = $(call am__ensure_dir_exists,$(am__depdir))
+am__o_src = $(if $(filter .obj,$(suffix $@)),`$(CYGPATH_W) $<`,$<)
endif %?FIRST%
if %?NONLIBTOOL%
-?GENERIC?%.o: %%EXT%
-?!GENERIC?%OBJ%: %SOURCE%
+?GENERIC?%.$(OBJEXT): %%EXT%
+?!GENERIC?%BASE%.$(OBJEXT): %SOURCE%
if %FASTDEP%
%SILENT%$(am__ensure_depdir)
## In fast-dep mode, we can always use -o.
%VERBOSE%%COMPILE% -MT $@ -MD -MP -MF $(am__depbase).Tpo \
- %-c% -o $@ %SOURCEFLAG%$<
- %SILENT%$(am__mv) $(am__depbase).Tpo $(am__depbase).Po
-else !%FASTDEP%
-if !%AMDEP%
- %SILENT%$(am__ensure_target_dir_exists)
-else %AMDEP%
- %SILENT%$(am__ensure_depdir)
- %VERBOSE%source='%SOURCE%' object='%OBJ%' libtool=no @AMDEPBACKSLASH@
- DEPDIR=$(DEPDIR) $(%FPFX%DEPMODE) $(depcomp) @AMDEPBACKSLASH@
-endif %AMDEP%
-?-o? %VERBOSE-NODEP%%COMPILE% %-c% %-o% %OBJ% %SOURCEFLAG%$<
-?!-o? %VERBOSE-NODEP%%COMPILE% %-c% %SOURCEFLAG%$<
-endif !%FASTDEP%
-
-?GENERIC?%.obj: %%EXT%
-?!GENERIC?%OBJOBJ%: %SOURCE%
-if %FASTDEP%
- %SILENT%$(am__ensure_depdir)
-## In fast-dep mode, we can always use -o.
- %VERBOSE%%COMPILE% -MT $@ -MD -MP -MF $(am__depbase).Tpo \
- %-c% -o $@ %SOURCEFLAG%`$(CYGPATH_W) $<`
+ %-c% -o $@ %SOURCEFLAG%$(am__o_src)
%SILENT%$(am__mv) $(am__depbase).Tpo $(am__depbase).Po
else !%FASTDEP%
if !%AMDEP%
%SILENT%$(am__ensure_target_dir_exists)
else %AMDEP%
%SILENT%$(am__ensure_depdir)
- %VERBOSE%source='%SOURCE%' object='%OBJOBJ%' libtool=no @AMDEPBACKSLASH@
+ %VERBOSE%object=$@ libtool=no @AMDEPBACKSLASH@
DEPDIR=$(DEPDIR) $(%FPFX%DEPMODE) $(depcomp) @AMDEPBACKSLASH@
endif %AMDEP%
-?-o? %VERBOSE-NODEP%%COMPILE% %-c% %-o% %OBJOBJ% %SOURCEFLAG%`$(CYGPATH_W)
$<`
-?!-o? %VERBOSE-NODEP%%COMPILE% %-c% %SOURCEFLAG%`$(CYGPATH_W) $<`
+?-o? %VERBOSE-NODEP%%COMPILE% %-c% %-o% $@ %SOURCEFLAG%$(am__o_src)
+?!-o? %VERBOSE-NODEP%%COMPILE% %-c% %SOURCEFLAG%$(am__o_src)
endif !%FASTDEP%
endif %?NONLIBTOOL%
@@ -96,10 +77,10 @@ if !%AMDEP%
%SILENT%$(am__ensure_target_dir_exists)
else %AMDEP%
%SILENT%$(am__ensure_depdir)
- %VERBOSE%source='%SOURCE%' object='%LTOBJ%' libtool=yes @AMDEPBACKSLASH@
+ %VERBOSE%object=$@ libtool=yes @AMDEPBACKSLASH@
DEPDIR=$(DEPDIR) $(%FPFX%DEPMODE) $(depcomp) @AMDEPBACKSLASH@
endif %AMDEP%
## We can always use '-o' with Libtool.
- %VERBOSE-NODEP%%LTCOMPILE% %-c% -o %LTOBJ% %SOURCEFLAG%$<
+ %VERBOSE-NODEP%%LTCOMPILE% %-c% -o $@ %SOURCEFLAG%$<
endif !%FASTDEP%
endif %?LIBTOOL%
diff --git a/lib/depcomp b/lib/depcomp
index debb6ff..9d1b577 100755
--- a/lib/depcomp
+++ b/lib/depcomp
@@ -39,7 +39,6 @@ as side-effects.
Environment variables:
depmode Dependency tracking mode.
- source Source file read by 'PROGRAMS ARGS'.
object Object file output by 'PROGRAMS ARGS'.
DEPDIR directory where to store dependencies.
depfile Dependency file to output.
@@ -62,8 +61,8 @@ tab=' '
nl='
'
-if test -z "$depmode" || test -z "$source" || test -z "$object"; then
- echo "depcomp: Variables source, object and depmode must be set" 1>&2
+if test -z "$depmode" || test -z "$object"; then
+ echo "depcomp: Variables object and depmode must be set" 1>&2
exit 1
fi
diff --git a/t/empty2.sh b/t/empty2.sh
index 7d12423..224c26d 100755
--- a/t/empty2.sh
+++ b/t/empty2.sh
@@ -31,5 +31,6 @@ END
$ACLOCAL
$AUTOMAKE
-grep 'pavel\.[co]' Makefile.in && Exit 1
-Exit 0
+grep 'pavel\.' Makefile.in && Exit 1
+
+:
diff --git a/t/empty3.sh b/t/empty3.sh
index 6aabfba..4721db5 100755
--- a/t/empty3.sh
+++ b/t/empty3.sh
@@ -29,4 +29,6 @@ END
$ACLOCAL
$AUTOMAKE
-grep 'pavel\.[co]' Makefile.in
+$FGREP ' pavel.c' Makefile.in
+
+:
diff --git a/t/ext.sh b/t/ext.sh
index 02ceab5..72ff211 100755
--- a/t/ext.sh
+++ b/t/ext.sh
@@ -34,11 +34,11 @@ END
$ACLOCAL
$AUTOMAKE
-$FGREP '%.o' Makefile.in # For debugging.
+$FGREP '%.$(OBJEXT)' Makefile.in # For debugging.
for ext in f for f90 f95 F F90 F95 r m mm upc; do
grep "%.*: %$ext" Makefile.in && Exit 1
- grep "^%\.o: %\.$ext$" Makefile.in
+ grep "^%\.\$(OBJEXT): %\.$ext$" Makefile.in
done
:
diff --git a/t/ext2.sh b/t/ext2.sh
index ac5b777..a114580 100755
--- a/t/ext2.sh
+++ b/t/ext2.sh
@@ -35,7 +35,7 @@ EOF
$ACLOCAL
$AUTOMAKE
-grep '\.o:' Makefile.in > rules
+grep '\.$(OBJEXT):' Makefile.in > rules
cat rules
# Here is an example of bogus output. The rules are output several
diff --git a/t/libtool3.sh b/t/libtool3.sh
index 5ac3b16..711581a 100755
--- a/t/libtool3.sh
+++ b/t/libtool3.sh
@@ -77,7 +77,7 @@ $AUTOCONF
$AUTOMAKE --add-missing --copy
# We shouldn't need explicit rules.
-$EGREP '[^%]\.(o|obj|lo) *:' Makefile.in && Exit 1
+$EGREP '[^%]\.(o|obj|lo|\$\(OBJEXT\)) *:' Makefile.in && Exit 1
./configure
diff --git a/t/objc-basic.sh b/t/objc-basic.sh
index f3234d7..464887b 100755
--- a/t/objc-basic.sh
+++ b/t/objc-basic.sh
@@ -35,6 +35,6 @@ $ACLOCAL
$AUTOMAKE
$FGREP '$(OBJC)' Makefile.in
$FGREP '$(OBJCLD)' Makefile.in
-grep '^%\.o: %\.m$' Makefile.in
+grep '^%\.$(OBJEXT): %\.m$' Makefile.in
:
diff --git a/t/objcxx-basic.sh b/t/objcxx-basic.sh
index 29aa982..1c807dc 100755
--- a/t/objcxx-basic.sh
+++ b/t/objcxx-basic.sh
@@ -37,6 +37,6 @@ $ACLOCAL
$AUTOMAKE
$FGREP '$(OBJCXX)' Makefile.in
$FGREP '$(OBJCXXLD)' Makefile.in
-grep '^%\.o: %\.mm$' Makefile.in
+grep '^%\.$(OBJEXT): %\.mm$' Makefile.in
:
diff --git a/t/pr87.sh b/t/pr87.sh
index 121328d..c6cb90a 100755
--- a/t/pr87.sh
+++ b/t/pr87.sh
@@ -55,19 +55,6 @@ $ACLOCAL
$AUTOCONF
$AUTOMAKE -a
-# Regression test for bug where '.c.o:' is followed by blank line.
-(while read line; do
- if test "$line" = ".c.o:"; then
- read next
- if test -z "$next"; then
- Exit 1
- else
- : # For shells with broken 'set -e'.
- fi
- break
- fi
- done) < foo/Makefile.in || Exit 1
-
cd build
../configure
$MAKE distcheck
diff --git a/t/silent-many-gcc.sh b/t/silent-many-gcc.sh
index f6eabbe..eb00ceb 100755
--- a/t/silent-many-gcc.sh
+++ b/t/silent-many-gcc.sh
@@ -170,7 +170,7 @@ $FGREP am_cv_CC_dependencies_compiler_type configure
$FGREP am_cv_CXX_dependencies_compiler_type configure
# Ensure per-target rules are used, to ensure their coverage below.
# (We do not do an exhaustive check, that wouldn't be practical).
-$FGREP 'bar-bar.o' Makefile.in || Exit 99
+$FGREP 'bar-bar.$(OBJEXT)' Makefile.in || Exit 99
$FGREP 'baz-foo5.c' Makefile.in || Exit 99
$FGREP 'baz-foo6.c' Makefile.in || Exit 99
diff --git a/t/silent-many-generic.sh b/t/silent-many-generic.sh
index a6b4a1e..7320794 100755
--- a/t/silent-many-generic.sh
+++ b/t/silent-many-generic.sh
@@ -197,7 +197,7 @@ $AUTOCONF
# Ensure per-target rules are used, to ensure their coverage below.
# (We do not do an exhaustive check, that wouldn't be practical).
-$FGREP 'bar-bar.o' Makefile.in || Exit 99
+$FGREP 'bar-bar.$(OBJEXT)' Makefile.in || Exit 99
$FGREP 'baz-foo5.c' Makefile.in || Exit 99
$FGREP 'baz-foo6.c' Makefile.in || Exit 99
diff --git a/t/specflg.sh b/t/specflg.sh
index 9d5c73c..6cb6b36 100755
--- a/t/specflg.sh
+++ b/t/specflg.sh
@@ -39,13 +39,15 @@ grep 'required.*compile' stderr
$AUTOMAKE
-# Look for $(COMPILE) -c in .c.o rule.
+$FGREP 'foo-foo.$(OBJEXT)' Makefile.in
+
+# Watch against "$(COMPILE) -c" in "%.o: %.c" rule.
grep 'COMPILE. [^-]' Makefile.in && Exit 1
-# Look for foo-foo.o.
-grep '[^-]foo\.o' Makefile.in && Exit 1
+# Watch against "foo.$(OBJEXT)", "foo.o" and "foo.obj".
+grep '[^-]foo\.[o$]' Makefile.in && Exit 1
# Regression test for missing space.
$FGREP ')-c' Makefile.in && Exit 1
-Exit 0
+:
diff --git a/t/specflg2.sh b/t/specflg2.sh
index 9f9569c..aff03b8 100755
--- a/t/specflg2.sh
+++ b/t/specflg2.sh
@@ -45,15 +45,18 @@ grep 'required.*compile' stderr
$AUTOMAKE
-# Look for $(COMPILE) -c in .c.o rule.
+$FGREP 'libfoo_a-foo.$(OBJEXT)' Makefile.in
+$FGREP 'libfoo_a-bar.$(OBJEXT)' Makefile.in
+
+# Watch against "$(COMPILE) -c" in the "%.o: %c" rule.
grep 'COMPILE. [^-]' Makefile.in && Exit 1
-# Look for libfoo_a-foo.o.
+# Watch against "foo.$(OBJEXT)", "foo.o" and "foo.obj".
grep foo Makefile.in
-grep '[^-]foo\.o' Makefile.in && Exit 1
+grep '[^-]foo\.[o$]' Makefile.in && Exit 1
-# Look for libfoo_a-bar.o.
+# Watch against "bar.$(OBJEXT)", "bar.o" and "bar.obj".
grep bar Makefile.in
-grep '[^-]bar\.o' Makefile.in && Exit 1
+grep '[^-]bar\.[o$]' Makefile.in && Exit 1
-Exit 0
+:
diff --git a/t/specflg3.sh b/t/specflg3.sh
index 9e78872..78cf237 100755
--- a/t/specflg3.sh
+++ b/t/specflg3.sh
@@ -35,7 +35,7 @@ END
$ACLOCAL
$AUTOMAKE
-$FGREP ' -o foo-foo' Makefile.in
+$FGREP 'foo-foo.$(OBJEXT)' Makefile.in
$FGREP 'foo.o.o' Makefile.in && Exit 1
$FGREP 'foo.$(OBJEXT).$(OBJEXT)' Makefile.in && Exit 1
$FGREP '$(foo_CFLAGS)' Makefile.in
diff --git a/t/specflg6.sh b/t/specflg6.sh
index f420cdf..cc585e9 100755
--- a/t/specflg6.sh
+++ b/t/specflg6.sh
@@ -41,7 +41,7 @@ END
$ACLOCAL
$AUTOMAKE
-uncondval=`$FGREP 'foo-foo.o: foo.c' Makefile.in`
+uncondval=`$FGREP 'foo-foo.$(OBJEXT): foo.c' Makefile.in`
cat >> Makefile.am << 'END'
foo_SOURCES += $(BAR_SRCS)
@@ -49,7 +49,7 @@ END
$AUTOMAKE
-condval=`$FGREP 'foo-foo.o: foo.c' Makefile.in`
+condval=`$FGREP 'foo-foo.$(OBJEXT): foo.c' Makefile.in`
test "x$uncondval" = "x$condval"
diff --git a/t/suffix.sh b/t/suffix.sh
index 0d72782..c60f734 100755
--- a/t/suffix.sh
+++ b/t/suffix.sh
@@ -44,15 +44,11 @@ for use_arlib in false :; do
$ACLOCAL
- $AUTOMAKE $am_warns -i
- grep '%\.[co]' Makefile.in # For debugging.
- test `grep -c '^%\.o: %\.c$' Makefile.in` -eq 1
- test `grep -c '^%\.obj: %\.c$' Makefile.in` -eq 1
-
- $AUTOMAKE $am_warns
- grep '%\.[co]' Makefile.in # For debugging.
- test `grep -c '^%\.o: %\.c$' Makefile.in` -eq 1
- test `grep -c '^%\.obj: %\.c$' Makefile.in` -eq 1
+ for o in '' '-i'; do
+ $AUTOMAKE $am_warns $o
+ grep '%\.[co$]' Makefile.in # For debugging.
+ test $(grep -c '^%\.\$(OBJEXT): %\.c$' Makefile.in) -eq 1
+ done
done
diff --git a/t/suffix2.sh b/t/suffix2.sh
index fb17ee3..bca8169 100755
--- a/t/suffix2.sh
+++ b/t/suffix2.sh
@@ -40,14 +40,11 @@ END
$ACLOCAL
-$AUTOMAKE -a
-grep '%\.[co]' Makefile.in # For debugging.
-test `grep -c '^%\.o: %\.c$' Makefile.in` -eq 1
-test `grep -c '^%\.obj: %\.c$' Makefile.in` -eq 1
-
-$AUTOMAKE -i
-grep '%.[co]' Makefile.in # For debugging.
-test `grep -c '^%\.o: %\.c$' Makefile.in` -eq 1
-test `grep -c '^%\.obj: %\.c$' Makefile.in` -eq 1
+for o in -a -i; do
+ $AUTOMAKE $o
+ grep '%\.[lco$]' Makefile.in # For debugging.
+ test `grep -c '^%\.$(OBJEXT): %\.c$' Makefile.in` -eq 1
+ test `grep -c '^%\.lo: %\.c$' Makefile.in` -eq 1
+done
:
hooks/post-receive
--
GNU Automake
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Automake-commit] [SCM] GNU Automake branch, ng/master, updated. v1.12.1-324-g50b2839,
Stefano Lattarini <=