help-make
[Top][All Lists]
Advanced

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

Re: How to dive into SUBDIRS


From: Paul Smith
Subject: Re: How to dive into SUBDIRS
Date: Mon, 31 Mar 2008 10:35:43 -0400

On Mon, 2008-03-31 at 16:26 +0200, Patrick Schoenfeld wrote:
> On Fri, Mar 28, 2008 at 01:47:55PM -0400, Paul Smith wrote:
> >         .PHONY: all $(addsuffix .all,$(DIRS)) \
> >               update $(addsuffix .update,$(DIRS)) \
> >               upload $(addsuffix .upload,$(DIRS))
> 
> just one comment: IMHO this appears to be an error. It does not work
> with PHONY targets for the dynamic targets. I'm not sure but I think
> it is because "It is just a name (...) to be executed (...) when you
> make an *explicit* *request*." I do understand that as "is not
> executed as a depend.

Sorry, I didn't understand what you were trying to say.

However, this doesn't work simply because I typed the wrong stuff here.
The original targets were:

        all: $(addprefix all.,$(DIRS))
        update: $(addprefix update.,$(DIRS))
        upload: $(addprefix upload.,$(DIRS))

but I was using addsuffix above.  Change to:

        .PHONY: all $(addprefix all.,$(DIRS)) \
                update $(addprefix update.,$(DIRS)) \
                upload $(addprefix upload.,$(DIRS))

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.mad-scientist.us
 "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]