From patchwork Fri Apr 10 21:20:54 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 17693 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n3ALKiUj028427 for ; Fri, 10 Apr 2009 21:20:44 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750779AbZDJVUn (ORCPT ); Fri, 10 Apr 2009 17:20:43 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751282AbZDJVUn (ORCPT ); Fri, 10 Apr 2009 17:20:43 -0400 Received: from rcsinet12.oracle.com ([148.87.113.124]:34751 "EHLO rgminet12.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750779AbZDJVUm (ORCPT ); Fri, 10 Apr 2009 17:20:42 -0400 Received: from rgminet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rgminet12.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n3ALKMvO010173 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 10 Apr 2009 21:20:23 GMT Received: from acsmt701.oracle.com (acsmt701.oracle.com [141.146.40.71]) by rgminet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n3ALKdBF021366; Fri, 10 Apr 2009 21:20:40 GMT Received: from [141.144.72.97] (/141.144.72.97) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 10 Apr 2009 14:20:31 -0700 Message-ID: <49DFB836.7080102@oracle.com> Date: Fri, 10 Apr 2009 14:20:54 -0700 From: Randy Dunlap Organization: Oracle Linux Engineering User-Agent: Thunderbird 2.0.0.6 (X11/20070801) MIME-Version: 1.0 To: Sam Ravnborg CC: Randy Dunlap , linux-kbuild@vger.kernel.org, linux-doc@vger.kernel.org Subject: [PATCH v2] docbook: make cleandocs References: <20090410133538.fa2b9798.randy.dunlap@oracle.com> <20090410204930.GA26185@uranus.ravnborg.org> In-Reply-To: <20090410204930.GA26185@uranus.ravnborg.org> X-Source-IP: acsmt701.oracle.com [141.146.40.71] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A010205.49DFB821.01F8:SCFMA4539814,ss=1,fgs=0 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org From: Randy Dunlap Add a 'make cleandocs' target to clean up all generated DocBook files. Signed-off-by: Randy Dunlap --- Documentation/DocBook/Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) --- linux-2.6.30-rc1-git3.orig/Documentation/DocBook/Makefile +++ linux-2.6.30-rc1-git3/Documentation/DocBook/Makefile @@ -31,7 +31,7 @@ PS_METHOD = $(prefer-db2x) ### # The targets that may be used. -PHONY += xmldocs sgmldocs psdocs pdfdocs htmldocs mandocs installmandocs +PHONY += xmldocs sgmldocs psdocs pdfdocs htmldocs mandocs installmandocs cleandocs BOOKS := $(addprefix $(obj)/,$(DOCBOOKS)) xmldocs: $(BOOKS) @@ -213,11 +213,12 @@ silent_gen_xml = : dochelp: @echo ' Linux kernel internal documentation in different formats:' @echo ' htmldocs - HTML' - @echo ' installmandocs - install man pages generated by mandocs' - @echo ' mandocs - man pages' @echo ' pdfdocs - PDF' @echo ' psdocs - Postscript' @echo ' xmldocs - XML DocBook' + @echo ' mandocs - man pages' + @echo ' installmandocs - install man pages generated by mandocs' + @echo ' cleandocs - clean all generated DocBook files' ### # Temporary files left by various tools @@ -235,6 +236,10 @@ clean-files := $(DOCBOOKS) \ clean-dirs := $(patsubst %.xml,%,$(DOCBOOKS)) man +cleandocs: + $(Q)rm -f $(call objectify, $(clean-files)) + $(Q)rm -rf $(call objectify, $(clean-dirs)) + # Declare the contents of the .PHONY variable as phony. We keep that # information in a variable se we can use it in if_changed and friends.