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

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

Re: recursive make: communicating target to sub-makes


From: Paul D. Smith
Subject: Re: recursive make: communicating target to sub-makes
Date: 13 Feb 2006 14:23:13 -0500
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4

%% Daniel Kabs <daniel.kabs@gmx.de> writes:

  >> ALL = $(addsuffix -all,$(SUBDIRS))
  >> all: $(ALL)
  >> $(ALL):
  >>        $(MAKE) -C $(@:-all=) all

  dk> Wow, just tried it and it works. Great! But what is the $(@:-all=)
  dk> variable reference you are using? I could not find anything about
  dk> it in the make 3.80 manual.

Look up the section on "Substitution References", under "Advanced
Features for Reference to Variables".


HTH!

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <psmith@gnu.org>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "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]