This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Custom make rules


Am Mit, 2002-09-18 um 23.23 schrieb Alexandre Duret-Lutz:
> Please SHOUT LOUD if your package works with Automake 1.6.3 but
> doesn't with 1.6d.

Using custom compilations rules in a Makefile.am:

# cat Makefile.am:
${ARCH}/%.$(OBJEXT): %.S
	test -d ${ARCH} || mkdir ${ARCH}
	${CCASCOMPILE} -o $@ -c $<

${ARCH}/%.$(OBJEXT): %.c
	test -d ${ARCH} || mkdir ${ARCH}
	${COMPILE} -o $@ -c $<

# autoreconf -fi
autoreconf: `aclocal.m4' is unchanged
Makefile.am:5: redefinition of `${ARCH}/%.$(OBJEXT)'...
Makefile.am:1: ... `${ARCH}/%.$(OBJEXT)' previously defined here.

1. automake-1.6.3 and previous versions did not complain.
2. automake's complaint is wrong. These are two different make rules.

Could it be that automake-1.6d is confused about variables (VAR=..) and
rules (VAR: ...)?

Ralf






Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]