help-make
[Top][All Lists]
Advanced

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

Re: A newbie question


From: Paul D. Smith
Subject: Re: A newbie question
Date: Wed, 9 May 2001 16:46:22 -0400

%% Barry D Benowitz <address@hidden> writes:

  bdb> I already have a rule similar to this (no clean) because in the
  bdb> normal case, I want to descend the directories and run straight
  bdb> make. What I'd like to do is give a target, say cleanup, that
  bdb> descends, cleans in the descended directory, then cleans in the
  bdb> current directory. Thats where the complication comes in.

Ah.  Well, why didn't you say so? :)

# -----
SUBDIRS = foo bar biz baz boz

SUBCLEAN = $(addsuffix .clean,SUBDIRS)

.PHONY: $(SUBCLEAN)

clean: $(SUBCLEAN)
        : do some cleaning in the current directory

$(SUBCLEAN): %.clean:
        $(MAKE) -C $* clean
# -----

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://www.paulandlesley.org/gmake/
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist



reply via email to

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