On Wed, Mar 24, 2010 at 9:58 AM, Todd Showalter <[email protected]> wrote:
> This is what I usually do:
>
>> <Makefile>
>>
>> ############ actual scenario
>> SUBPRODSBLD = prod*
>
> SUBPRODSBLD_CLEAN = $(patsubst %,%.clean,$(SUBPRODSBLD))
>
> .PHONY: $(SUBPRODSBLD_CLEAN)
> $(SUBPRODSBLD_CLEAN):
> �...@make -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.
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make