Re: Cleaning up after installing packages

"Jason V. Miller" <[email protected]>
Newsgroups gmane.os.netbsd.help
Message-ID <[email protected]>
On Wed, Dec 13, 2006 at 11:48:32AM -0500, Trey Sizemore wrote:
> So could installing a package and subsequent cleaning be done in one
> fell swoop with?:
> 
> # make install clean clean-depends distclean

The short answer is yes.

The long asnwer is kind of, though it's more correct to call make twice
as follows:

# make install && make clean clean-depends distclean;

Which won't remove your distfiles in the event that the build fails, and
for some reason I think that combining clean and build targets in a single
make command is bad practice (though I can't recall why).

I personally find it handy to keep my distfiles around until they're no
longer required by any packages in the tree. You can use the -r option to
lintpksrc(1) (from pkgtools/pkglint) to do this for you.

J.

-- 
Jason V. Miller
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.