Subject: Re: xsrc/5509: "make clean" in "xsrc" doesn't remove all created files
To: None <gnats-bugs@gnats.netbsd.org>
From: Matthieu Herrb <matthieu@laas.fr>
List: netbsd-bugs
Date: 05/30/1998 16:04:31
You wrote (in your message from Fri 29)
>
> I think the largest part of the problem is that 'clean' doesn't clean
> manual pages. That should be fixable by a bit of 'simple' imake
> config file hacking, and should then automatically apply to the whole
> tree.
>
Here is a simple patch to clean man pages (relative to XFree86 3.3.2):
Index: xc/config/cf/NetBSD.cf
===================================================================
RCS file: /local/cvs/xc/config/cf/NetBSD.cf,v
retrieving revision 1.1.1.36.4.11
diff -u -r1.1.1.36.4.11 NetBSD.cf
--- NetBSD.cf 1998/01/25 09:56:42 1.1.1.36.4.11
+++ NetBSD.cf 1998/05/30 13:54:37
@@ -264,7 +264,10 @@
-@if [ -f file.0 ]; \ @@\
then \ @@\
$(INSTALL) -c $(INSTMANFLAGS) file.0 $(DESTDIR)destdir/dest.0; \@@\
- fi
+ fi @@\
+ @@\
+clean:: @@\
+ RemoveFile(file.0)
#define InstallGenManPageLong(file,destdir,dest,suffix) @@\
InstallManPageLong(file,destdir,dest)
Matthieu