Date: Sun, 1 Feb 1998 23:42:53 -0500 (EST) From: Tim Vanderhoek <ac199@hwcn.org> To: ports@FreeBSD.ORG Cc: obrien@Nuxi.com Subject: Re: ports/1902: additional clean targets for bsd.port.mk Message-ID: <Pine.BSF.3.96.980201232839.203C-100000@localhost> In-Reply-To: <199802020419.XAA00290@ppp1563.on.bellglobal.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> >Number: 1902 > >Category: ports > >Synopsis: additional clean targets for bsd.port.mk [...] > The second target is "deepclean" that inaddition to "distclean" > deletes the portball. This is useful as many times I build a port > because the package either isn't avail, or doesn't match my system. > After I've installed the port, I have no desire to keep the portball > around. The only negitive port to this target, is after building > this target, you are left in a cwd that doesn't exist anymore. > But a simple ``cd'' to the next place you wanted to go anyway will > take care of that. Okay, does anyone still want to defend the addition of a "deepclean" target (David, that would be you! :)? I can't find any comments on this target in either the list archives or the follow-ups. My impulse is to say "Ugh yuck!", otherwise. :-) :-) The negative about deleting the existing directory is mentioned. The port tarballs are actually quite small (with only a few exceptions). If the port tarball was fetched with fetch \ ftp://ftp.FreeBSD.ORG/pub/FreeBSD/ports-current/games/tvp.tar.gz And the resultant tarball expanded in my home directory, I would just `cd ~/pub/FreeBSD/ports-current/games/tvp` and do my `make' there. The deepclean target would fail in this case. It also fails to handle no-longer-wanted category-dirs (eg. `make deepclean` in biology/babel/ would remove biology/babel/, but not biology/, which I may or may not want removed). Unless we still want the deepclean target, the pr can probably be closed. -- > +.if !target(pre-deepclean) > +pre-deepclean: > + @${DO_NADA} > +.endif > + > +.if !target(deepclean) > +PORTDIRNAME!= /usr/bin/basename ${.CURDIR} > +realclean: pre-deepclean distclean > + @${ECHO_MSG} "===> Deep cleansing for ${PKGNAME}" > + @(cd ${.CURDIR}/.. ; \ > + ${RM} -rf ${PORTDIRNAME}) > +.endif -- tIM...HOEk OPTIMIZATION: the process of using many one-letter variables names hoping that the resultant code will run faster.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980201232839.203C-100000>