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


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

Reply via email to