Re: make clean for DocBook

From: Sam Ravnborg
Date: Fri Apr 13 2007 - 12:41:32 EST


On Fri, Apr 13, 2007 at 09:06:58AM -0700, Randy Dunlap wrote:
> Hi Sam,
>
> 'make clean' doesn't seem to descend into Documentation/DocBook/.
> At least 'make V=1 clean' doesn't show me any references in DocBook.
>
> I guess that this is because DocBook doesn't have anything that
> qualifies in obj-y/m/n and subdir-y/m/n. (?)

Documentation/ is handled explicit i top-level Makefile:

mrproper-dirs := $(addprefix _mrproper_,Documentation/DocBook scripts)

PHONY += $(mrproper-dirs) mrproper archmrproper
$(mrproper-dirs):
$(Q)$(MAKE) $(clean)=$(patsubst _mrproper_%,%,$@)


And we will visit DocBook with mrproper - but not clean.
I have no stron opinion when to delete generated files in DocBook.

Sam
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/