Subject: Re: make clean
To: None <current-users@netbsd.org>
From: Anders Mundt Due <amd@pd-house.dk>
List: current-users
Date: 03/09/2002 22:44:10
--3MwIy2ne0vdjdPXF
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On  8 Mar, Adam Majewski wrote:
>=20
>   hello,
>=20
>    i have problem with 'make clean', here is an console output:
>=20
> --\/--
> pulstar# make clean
> [...]
> rm -f grep.1 grep.info grep.cat1
> rm -f a.out [Ee]rrs mklog core *.core grep
> rm: grep: is a directory
> *** Error code 1
>=20

I've got the same problem when I do a cvs checkout with a local repository,
my best solution is the following patch.
(sup'ing from sup.netbsd.org at irregular intervals)

--- share/mk/bsd.prog.mk        2002/02/11 21:15:01     1.154
+++ share/mk/bsd.prog.mk        2002/03/09 12:05:49     1.155
@@ -140,7 +140,10 @@
 realall: ${PROG} ${SCRIPTS}
=20
 cleanprog: cleanobjs cleanextra
-       rm -f a.out [Ee]rrs mklog core *.core ${PROG}
+       rm -f a.out [Ee]rrs mklog core *.core
+.if exists(PROG)
+       rm -rf ${PROG}
+.endif
=20
 cleanobjs:
 .if defined(OBJS) && !empty(OBJS)


That makes it work out just fine, but as is said, doing cvs upd -Pd in your
/usr/src directory should render this patch unneeded, but for some reason,
I continously need to aply it.

/Anders

p.s. sorry if I use really odd language, I got a mild fever :)

--3MwIy2ne0vdjdPXF
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (NetBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE8ioIqRaQuZj6truIRAit9AKDqGu+gcpL9Zk5/CFwhx0Bg8LTrygCgqlZB
Ecu4NoDpvsvI1z5o+Pl1vBI=
=rcx2
-----END PGP SIGNATURE-----

--3MwIy2ne0vdjdPXF--