after $MAKE -e.
* tests/ansi3.test, tests/ansi5.test, tests/cond22.test,
tests/man2.test, tests/subobj3.test, tests/suffix8.test,
tests/suffix11.test: Do not set SHELL=/bin/sh after $MAKE -e.
$SHELL is overridden by tests/defs, so it won't hurt even
if $MAKE -e uses the $SHELL envvar.
* tests/ansi.test, tests/insh2.test, tests/texinfo.test,
tests/texinfo8.test: Use SHELL=$SHELL, not SHELL=/bin/sh.
Reported by Richard Dawe.
2003-01-10 Alexandre Duret-Lutz <adl@gnu.org>
+ * Makefile.am (maintainer-check): Do not require SHELL=/bin/sh
+ after $MAKE -e.
+ * tests/ansi3.test, tests/ansi5.test, tests/cond22.test,
+ tests/man2.test, tests/subobj3.test, tests/suffix8.test,
+ tests/suffix11.test: Do not set SHELL=/bin/sh after $MAKE -e.
+ $SHELL is overridden by tests/defs, so it won't hurt even
+ if $MAKE -e uses the $SHELL envvar.
+ * tests/ansi.test, tests/insh2.test, tests/texinfo.test,
+ tests/texinfo8.test: Use SHELL=$SHELL, not SHELL=/bin/sh.
+ Reported by Richard Dawe.
+
Build elisp files all at once instead of one by one.
* automake.in (handle_emacs_lisp): Define am__ELFILES. Add
elc-stamp to all's dependencies.
## Makefile for Automake.
-## Copyright (C) 1995, 1996, 1997, 1998, 1999, 2001, 2002 Free
-## Software Foundation, Inc.
+## Copyright (C) 1995, 1996, 1997, 1998, 1999, 2001, 2002, 2003
+## 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
## recursive targets are used. Better use an envvar. SHELL is an exception,
## POSIX says it can't come from the environment.
@if grep -E '\$$MAKE .*(SHELL=.*=|=.*SHELL=)' $(srcdir)/tests/*.test; then \
- echo 'Rewrite "$$MAKE foo=bar SHELL=/bin/sh" as "foo=bar $$MAKE -e SHELL=/bin/sh"' 1>&2; \
+ echo 'Rewrite "$$MAKE foo=bar SHELL=$$SHELL" as "foo=bar $$MAKE -e SHELL=$$SHELL"' 1>&2; \
echo ' in the above lines, it is more portable.' 1>&2; \
exit 1; \
fi
@if grep -v SHELL $(srcdir)/tests/*.test | grep '\$$MAKE .*=' ; then \
- echo 'Rewrite "$$MAKE foo=bar" as "foo=bar $$MAKE -e SHELL=/bin/sh" in the above lines,' 1>&2; \
+ echo 'Rewrite "$$MAKE foo=bar" as "foo=bar $$MAKE -e" in the above lines,' 1>&2; \
echo 'it is more portable.' 1>&2; \
exit 1; \
fi
-## On NetBSD (1.5) and OSF, the $SHELL variable is still inherited from
-## the environment.
- @if grep '$$MAKE.* -e' $(srcdir)/tests/*.test | grep -v '-e.*SHELL' ; then \
- echo 'Always overwrite SHELL when using "$$MAKE -e".' 1>&2; \
- echo 'Use "$$MAKE -e SHELL=/bin/sh" in the above lines.' 1>&2; \
- exit 1; \
- fi
@if grep 'SHELL=.*\$$MAKE' $(srcdir)/tests/*.test; then \
- echo '$$MAKE ignores the SHELL envvar, use "$$MAKE SHELL=/bin/sh" in' 1>&2; \
+ echo '$$MAKE ignores the SHELL envvar, use "$$MAKE SHELL=$$SHELL" in' 1>&2; \
echo 'the above lines.' 1>&2; \
exit 1; \
fi
exit 1; \
fi
@if grep -E '\$$MAKE .*(SHELL=.*=|=.*SHELL=)' $(srcdir)/tests/*.test; then \
- echo 'Rewrite "$$MAKE foo=bar SHELL=/bin/sh" as "foo=bar $$MAKE -e SHELL=/bin/sh"' 1>&2; \
+ echo 'Rewrite "$$MAKE foo=bar SHELL=$$SHELL" as "foo=bar $$MAKE -e SHELL=$$SHELL"' 1>&2; \
echo ' in the above lines, it is more portable.' 1>&2; \
exit 1; \
fi
@if grep -v SHELL $(srcdir)/tests/*.test | grep '\$$MAKE .*=' ; then \
- echo 'Rewrite "$$MAKE foo=bar" as "foo=bar $$MAKE -e SHELL=/bin/sh" in the above lines,' 1>&2; \
+ echo 'Rewrite "$$MAKE foo=bar" as "foo=bar $$MAKE -e" in the above lines,' 1>&2; \
echo 'it is more portable.' 1>&2; \
exit 1; \
fi
- @if grep '$$MAKE.* -e' $(srcdir)/tests/*.test | grep -v '-e.*SHELL' ; then \
- echo 'Always overwrite SHELL when using "$$MAKE -e".' 1>&2; \
- echo 'Use "$$MAKE -e SHELL=/bin/sh" in the above lines.' 1>&2; \
- exit 1; \
- fi
@if grep 'SHELL=.*\$$MAKE' $(srcdir)/tests/*.test; then \
- echo '$$MAKE ignores the SHELL envvar, use "$$MAKE SHELL=/bin/sh" in' 1>&2; \
+ echo '$$MAKE ignores the SHELL envvar, use "$$MAKE SHELL=$$SHELL" in' 1>&2; \
echo 'the above lines.' 1>&2; \
exit 1; \
fi
Ramón García Fernández ramon@jl1.quim.ucm.es
Rich Wales richw@webcom.com
Richard Boulton richard@tartarus.org
+Richard Dawe rich@phekda.freeserve.co.uk
Rob Savoye rob@cygnus.com
Robert Bihlmeyer robbe@orcus.priv.at
Robert Boehne rboehne@ricardo-us.com
tempdir=elc.$$
+
+
# Cleanup the temporary directory on exit.
trap 'status=$?; rm -rf "$tempdir" && exit $status' 0
trap '(exit $?); exit' 1 2 13 15
#! /bin/sh
-# Copyright (C) 1996, 1997, 1998, 2000, 2001, 2002
+# Copyright (C) 1996, 1997, 1998, 2000, 2001, 2002, 2003
# Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
$AUTOMAKE || exit 1
$FGREP -v @SET_MAKE@ Makefile.in > Makefile.sed
-$MAKE -s -f Makefile.sed SHELL=/bin/sh magic | grep 'ansi2knr\.c'
+$MAKE -s -f Makefile.sed SHELL=$SHELL magic | grep 'ansi2knr\.c'
#! /bin/sh
-# Copyright (C) 1998, 1999, 2001, 2002 Free Software Foundation, Inc.
+# Copyright (C) 1998, 1999, 2001, 2002, 2003 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
&& $AUTOCONF \
&& $AUTOMAKE -a \
&& CC='gcc' ./configure \
- && ANSI2KNR=./ansi2knr U=_ $MAKE -e SHELL=/bin/sh \
+ && ANSI2KNR=./ansi2knr U=_ $MAKE -e \
&& ./hello
#! /bin/sh
-# Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
mv one/Makefile one/Makefile.old
sed -e 's,ANSI2KNR =,ANSI2KNR = ./ansi2knr,' < one/Makefile.old > one/Makefile
-U=_ $MAKE -e SHELL=/bin/sh
+U=_ $MAKE -e
./one/joe
./two/maude
#! /bin/sh
-# Copyright (C) 2002 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2003 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
$AUTOCONF
$AUTOMAKE
./configure
-OBJEXT=oo $MAKE -e SHELL=/bin/sh echo > output
+OBJEXT=oo $MAKE -e echo > output
cat output
$FGREP 'BEG: one.oo two.oo three.oo three2.oo :END' output
#! /bin/sh
-# Copyright (C) 1996, 1997, 1998, 2000, 2001, 2002
+# Copyright (C) 1996, 1997, 1998, 2000, 2001, 2002, 2003
# Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
$AUTOMAKE || exit 1
$FGREP -v @SET_MAKE@ Makefile.in > Makefile.sed
-$MAKE -s -f Makefile.sed SHELL=/bin/sh magic | grep install-sh
+$MAKE -s -f Makefile.sed SHELL=$SHELL magic | grep install-sh
#! /bin/sh
-# Copyright (C) 2002 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2003 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
# Let's play with $DESTDIR too, it shouldn't hurt.
./configure --prefix=''
-DESTDIR="`pwd`/=inst" $MAKE -e SHELL=/bin/sh install
+DESTDIR="`pwd`/=inst" $MAKE -e install
test -f ./=inst/man/man2/foo.2
test -f ./=inst/man/man4/foo.4
test -f ./=inst/man/man4/bar.4
-DESTDIR="`pwd`/=inst" $MAKE -e SHELL=/bin/sh uninstall
+DESTDIR="`pwd`/=inst" $MAKE -e uninstall
test ! -f ./=inst/man/man2/foo.2
test ! -f ./=inst/man/man4/foo.4
#! /bin/sh
-# Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+# Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
&& $AUTOCONF \
&& $AUTOMAKE -a \
&& ./configure \
- && ANSI2KNR=./ansi2knr U=_ $MAKE -e SHELL=/bin/sh \
+ && ANSI2KNR=./ansi2knr U=_ $MAKE -e \
&& ./hello
#! /bin/sh
-# Copyright (C) 2002 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2003 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
# But this should work anyway.
$AUTOMAKE -a -Wno-portability
./configure
-env OBJEXT=foo $MAKE -e SHELL=/bin/sh print >stdout
+env OBJEXT=foo $MAKE -e print >stdout
cat stdout
grep 'BEGIN: foo.foo :END' stdout
grep 'BEGIN: bar.foo :END' stdout
#! /bin/sh
-# Copyright (C) 2002 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2003 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
$AUTOCONF
$AUTOMAKE -a
./configure
-env OBJEXT=foo $MAKE -e SHELL=/bin/sh print >stdout
+env OBJEXT=foo $MAKE -e print >stdout
cat stdout
grep 'BEGIN: foo.foo :END' stdout
grep 'BEGIN: bar.lo :END' stdout
#! /bin/sh
-# Copyright (C) 1996, 1997, 1998, 2000, 2001, 2002
+# Copyright (C) 1996, 1997, 1998, 2000, 2001, 2002, 2003
# Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
$AUTOMAKE || exit 1
$FGREP -v @SET_MAKE@ Makefile.in > Makefile.sed
-$MAKE -s -f Makefile.sed SHELL=/bin/sh magic | grep 'texinfo\.tex'
+$MAKE -s -f Makefile.sed SHELL=$SHELL magic | grep 'texinfo\.tex'
#! /bin/sh
-# Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+# Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
$FGREP -v @SET_MAKE@ sub/Makefile.in > sub/Makefile.sed
test -f sub/texinfo.tex &&
-$MAKE -s -f sub/Makefile.sed SHELL=/bin/sh magic | grep 'texinfo\.tex'
+$MAKE -s -f sub/Makefile.sed SHELL=$SHELL magic | grep 'texinfo\.tex'
stat=$?
exit $stat