help-make
[Top][All Lists]
Advanced

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

Re: Recursive make for 'all' and 'clean' targets


From: hi
Subject: Re: Recursive make for 'all' and 'clean' targets
Date: Thu, 25 Mar 2010 11:14:53 +0530

Hi Todd,
 
Its working for me now.
 
Thank you.
-Hiral

On Wed, Mar 24, 2010 at 7:30 PM, Todd Showalter <address@hidden> wrote:
On Wed, Mar 24, 2010 at 9:58 AM, Todd Showalter <address@hidden> wrote:

>    This is what I usually do:
>
>> <Makefile>
>>
>> ############ actual scenario
>> SUBPRODSBLD = prod*
>
> SUBPRODSBLD_CLEAN = $(patsubst %,%.clean,$(SUBPRODSBLD))
>
> .PHONY: $(SUBPRODSBLD_CLEAN)
> $(SUBPRODSBLD_CLEAN):
>   address@hidden -C $(@:.clean=) clean

   Of course, I forgot one critical bit:

.PHONY: clean
clean: $(SUBPRODSBLD_CLEAN)

   Without that, nothing will actually trigger the clean.

                                                                        Todd.

--
 Todd Showalter, President,
 Electron Jump Games, Inc.


reply via email to

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