bug-gnulib
[Top][All Lists]
Advanced

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

Re: make -q and maintainer-makefile issues?


From: Paul Eggert
Subject: Re: make -q and maintainer-makefile issues?
Date: Sun, 14 Aug 2011 08:34:29 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.18) Gecko/20110617 Thunderbird/3.1.11

On 08/14/2011 03:19 AM, Bruno Haible wrote:
> I wouldn't want to kill all
> phony targets from all Makefiles, just for "make -q".

Sorry, I see that I wasn't clear earlier.  Not all phony targets have
the problem.  For example, the following works fine:

.PHONY: all

all: foo

foo: /etc/motd
        cat /etc/motd >$@

The problem occurs only when a phony target has a nonempty action,
and when "make -q" depends on the phony target.

If you can program a sanity check this way:

sanity:
        @$(SANITY)

where SANITY expands to the empty string if the check succeeds,
and to 'false' if it fails, then 'make -q' should work.  This is
true regardless of whether 'sanity' is phony.



reply via email to

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