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

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

Re: make questions


From: Daniel Kabs
Subject: Re: make questions
Date: Fri, 10 Feb 2006 17:17:15 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050920

SysTom wrote:
2) Is it possible to set a make option from a variable?  For example, I
would like to be able to do something like:

   ifeq ($(GATES),1)
    ISHKABIBBLE = foo
    ...
    MAKE            = $(MAKE) -B
  endif

where the MAKE = $(MAKE) -B' forces a recompile of everything when
GATES is set to 1.

I don't know if this is exactly what you want but I just figured that you can set MAKEFLAGS in the Makefile and make respects this during the current run.

Example: instead of saying "make -s" to make make silent, you can add the line
MAKEFLAGS = -s
to the Makefile.

Cheers
Daniel
--
Refactor, don't archive! - SamHasler - 28 Aug 2004 - twiki.org


reply via email to

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