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
[EMAIL PROTECTED]

Home: http://www.jgc.org/
POPFile: http://getpopfile.org/

Sign up for my Spam and Anti-spam Newsletter
at http://www.jgc.org/


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to