bug#13940: Spurious target redefinition warnings with Automake conditionals

2013-06-08 Thread Stefano Lattarini
[+cc automake-patches] On 03/13/2013 02:40 AM, Nick Bowler wrote: > Consider the following: > > % cat >configure.ac <<'EOF' > AC_INIT([test], [0]) > > AM_INIT_AUTOMAKE([foreign]) > > AM_CONDITIONAL([FOO], [true]) > > AC_CONFIG_FILES([Makefile]) > AC_OUTPUT > EOF > > % cat >Makefile.am <<'

bug#13940: Spurious target redefinition warnings with Automake conditionals

2013-03-12 Thread Nick Bowler
Consider the following: % cat >configure.ac <<'EOF' AC_INIT([test], [0]) AM_INIT_AUTOMAKE([foreign]) AM_CONDITIONAL([FOO], [true]) AC_CONFIG_FILES([Makefile]) AC_OUTPUT EOF % cat >Makefile.am <<'EOF' if FOO all-local: bar bar: ; @echo bar endif all-local: baz baz: ; @echo baz EOF On this