help-gnu-utils
[Top][All Lists]
Advanced

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

Re: How to include condition in Makefile.am so it gets propagated to Mak


From: Daniel Kabs
Subject: Re: How to include condition in Makefile.am so it gets propagated to Makefile.in?
Date: Mon, 13 Feb 2006 16:40:32 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050920

Hello!

Daniel Kabs wrote:
about how to include a conditional, e.g.

  ifeq ($(MAKECMDGOALS),help)
    MAKEFLAGS = -k
  endif

Just found out that make knows "Target-specific Variable Values"
(see manual rev 3.80, paragraph 6.10)

So in this very special case, you can rewrite the conditional as:

help: MAKEFLAGS = -k

This has to be written on it's onw line separate from the already existing "help" target.

Another workaround brought to you by
Daniel :-)



reply via email to

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