%% Barry D Benowitz <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>          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

_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-make

Reply via email to