This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
AM_INIT_AUTOMAKE([-Werror]) problem
- From: Harlan Stenn <hstenn at cisco dot com>
- To: automake at gnu dot org
- Date: Thu, 06 May 2004 21:11:55 -0700
- Subject: AM_INIT_AUTOMAKE([-Werror]) problem
Just in case this was missed...
So I'm using AM_INIT_AUTOMAKE([-Werror]) and I notice this:
> Edit Makefile.am bogusly
> gmake
cd /sourceplace && /bin/sh /sourceplace/config/missing --run automake-1.8 --foreign libcdb/Makefile:global-vars.mk:libcdb/Makefile.in
libcdb/Makefile.am:27: AM_CFLAGS multiply defined in condition TRUE ...
build/config.files/am-normal.am:6: ... `AM_CFLAGS' previously defined here
libcdb/Makefile.am:24: `build/config.files/am-normal.am' included from here
make: *** [/sourceplace/libcdb/Makefile.in] Error 1
> gmake
cd../.. && /bin/sh ./config.status libcdb/Makefile depfiles
config.status: creating libcdb/Makefile
config.status: executing depfiles commands
Finished /sourceplace/A.whereverlibcdb
It seems to me that the 2nd "gmake" should not quietly succeed.
Am I mistaken?
H