From owner-freebsd-doc Thu Dec 13 8:48:32 2001 Delivered-To: freebsd-doc@freebsd.org Received: from gate-internal.sim.ionidea.com (ion.so-com.net [212.110.132.83]) by hub.freebsd.org (Postfix) with ESMTP id B078837B405 for ; Thu, 13 Dec 2001 08:48:24 -0800 (PST) Received: (from phantom@localhost) by gate-internal.sim.ionidea.com (8.11.6/8.11.1) id fBDGoWe68598; Thu, 13 Dec 2001 18:50:32 +0200 (EET) (envelope-from phantom) Date: Thu, 13 Dec 2001 18:50:32 +0200 From: Alexey Zelkin To: doc@freebsd.org Subject: suggestion for new make target Message-ID: <20011213185032.A68588@gate.sim.ionidea.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.20i X-Operating-System: FreeBSD 4.2-RELEASE i386 Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org hi, While experimenting with www/ builds I've found that www/en/doc/Makefile builds all doc's with FORMATS="html html-split". When I tried to do "make clean" in some articles directory it was not cleaned because default FORMATS is set only to "html". Therefore I've made a small addition which allows to completely clean build directory, not depending on parameters you passed to make(1) at build stage. If you find it useful, I'll commit it. Index: doc.subdir.mk =================================================================== RCS file: /home/cvs/freebsd/doc/share/mk/doc.subdir.mk,v retrieving revision 1.8 diff -u -r1.8 doc.subdir.mk --- doc.subdir.mk 5 Nov 2001 10:33:38 -0000 1.8 +++ doc.subdir.mk 13 Dec 2001 11:57:24 -0000 @@ -41,11 +41,16 @@ # here. # # clean: -# Remove files created by the build process. +# Remove files created by the build process (using +# defaults specified by environment) # # cleandir: # Remove the object directory, if any. # +# allclean: +# Remove all possible generated files (all predictable +# combinations of ${FORMAT} values) +# .if !target(__initialized__) __initialized__: @@ -209,3 +214,6 @@ obj: _IMAGESUBDIR .endif + +allclean: + ${MAKE} FORMATS="${ALL_FORMATS}" clean To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message