Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Dec 2001 18:50:32 +0200
From:      Alexey Zelkin <phantom@freebsd.org>
To:        doc@freebsd.org
Subject:   suggestion for new make target
Message-ID:  <20011213185032.A68588@gate.sim.ionidea.com>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011213185032.A68588>