|
From: | John Graham-Cumming |
Subject: | Re: -r, .SUFFIXES: |
Date: | Wed, 05 Oct 2005 14:33:38 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040208 Thunderbird/0.5 Mnenhy/0.6.0.104 |
Boris Kolpackov wrote:
You probably mean *built-in* implicit rules here: .SUFFIXES: ifeq ($(filter -r,$(MAKEFLAGS)),) MAKEFLAGS += -r endif
That'll work but note that '-r' will not necessarily appear in MAKEFLAGS because of the 'interesting' way in which MAKEFLAGS is created. Consider for example:
all: ; @echo $(MAKEFLAGS) Running make -r outputs: r John. -- John Graham-Cumming address@hidden Home: http://www.jgc.org/ POPFile: http://getpopfile.org/ Sign up for my Spam and Anti-spam Newsletter at http://www.jgc.org/
[Prev in Thread] | Current Thread | [Next in Thread] |