[Top][All Lists]

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

Re: relocatable-prog: avoid warnings from Automake

From: Bruno Haible
Subject: Re: relocatable-prog: avoid warnings from Automake
Date: Thu, 24 Jan 2019 02:08:28 +0100
User-agent: KMail/5.1.3 (Linux/4.4.0-141-generic; KDE/5.18.0; x86_64; ; )

Hi Akim,

> This is what I get currently:
>  cd bison && /bin/sh build-aux/missing automake-1.16 --gnu Makefile
> lib/gnulib.mk:1677: warning: .PHONY was already defined in condition TRUE, 
> which includes condition RELOCATABLE_VIA_WRAPPER ...

I've seen this warning also with respect to normal dependencies like

foo.o : foo.c
        $(CC) $(CPPFLAGS) $(CFLAGS) -c foo.c
foo.o : xyz.h

It would be better if this case was fixed in Automake.

But in the absence of Automake maintenance, your proposed patch is good.
Maybe add a comment:
# Automake warns about conditionally added dependencies to unconditionally 
defined targets.


reply via email to

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