automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: .PHONY and 1.6d & Custom make rules


From: Ralf Corsepius
Subject: Re: .PHONY and 1.6d & Custom make rules
Date: 20 Sep 2002 08:19:07 +0200

Am Don, 2002-09-19 um 10.59 schrieb Alexandre Duret-Lutz:
> >>> "Ralf" == Ralf Corsepius <address@hidden> writes:
> 
> [...]
> 
>  Ralf> automake-1.6d complains about this:
> 
>  Ralf> # cat Makefile.am
>  Ralf> .PHONY: foo
>  Ralf> .PHONY: bar
> 
>  Ralf> # automake
>  Ralf> Makefile.am:2: redefinition of `.PHONY'...
>  Ralf> Makefile.am:1: ... `.PHONY' previously defined here.
> 
> [...]
> 
>  Ralf> Using custom compilations rules in a Makefile.am:
> 
>  Ralf> # cat Makefile.am:
>  Ralf> ${ARCH}/%.$(OBJEXT): %.S
>  Ralf> test -d ${ARCH} || mkdir ${ARCH}
>  Ralf> ${CCASCOMPILE} -o $@ -c $<
> 
>  Ralf> ${ARCH}/%.$(OBJEXT): %.c
>  Ralf> test -d ${ARCH} || mkdir ${ARCH}
>  Ralf> ${COMPILE} -o $@ -c $<
> 
>  Ralf> # autoreconf -fi
>  Ralf> autoreconf: `aclocal.m4' is unchanged
>  Ralf> Makefile.am:5: redefinition of `${ARCH}/%.$(OBJEXT)'...
>  Ralf> Makefile.am:1: ... `${ARCH}/%.$(OBJEXT)' previously defined here.
> 
> Thanks a lot.  I'm installing the following patch (it addresses
> both errors). 

Glad to hear these two are the same error. I wasn't sure ;)

> 2002-09-19  Alexandre Duret-Lutz  <address@hidden>
> 
>       * automake.in (rule_define): Don't diagnose duplicate user rules.
>       * tests/phony.test, tests/percent2.test: New files.
>       * tests/Makefile.am (TESTS): Add them.
Your patch seems to fix my problems.

With this and the patch addressing the "Conditional"-issue reported by
Pavel, I don't see any automake error messages with my packages anymore

Thanks,
        Ralf






reply via email to

[Prev in Thread] Current Thread [Next in Thread]