Date: Sat, 27 Dec 1997 22:15:54 -0800 (PST) From: asami@cs.berkeley.edu (Satoshi Asami) To: imp@village.org Cc: ports@freebsd.org Subject: Re: Make uninstall Message-ID: <199712280615.WAA26698@silvia.HIP.Berkeley.EDU> In-Reply-To: <199712280527.WAA06033@harmony.village.org> (message from Warner Losh on Sat, 27 Dec 1997 22:27:29 -0700)
next in thread | previous in thread | raw e-mail | index | archive | help
* This makes "make uninstall" work for ports. Kinda useful for when you * are trying out all 10345 different mine sweepers in games. Don't have * to recall which one you are working on do get the parameters to * pkg_delete right :-). Well, I think we call it "deinstall" in ports jargon. But anyway. * It seems to work for me, but may be kinda hackish. Improvements are * welcome. If you say so. :) === Index: bsd.port.mk =================================================================== RCS file: /usr/cvs/src/share/mk/bsd.port.mk,v retrieving revision 1.227.2.29 diff -u -r1.227.2.29 bsd.port.mk --- bsd.port.mk 1997/11/20 05:34:32 1.227.2.29 +++ bsd.port.mk 1997/12/28 06:14:43 @@ -240,6 +242,7 @@ # install - Install the results of a build. # reinstall - Install the results of a build, ignoring "already installed" # flag. +# deinstall - Remove the installation. # package - Create a package from an _installed_ port. # describe - Try to generate a one-line description for each port for # use in INDEX files and the like. @@ -781,6 +809,8 @@ @${IGNORECMD} install: @${IGNORECMD} +deinstall: + @${IGNORECMD} package: @${IGNORECMD} .endif @@ -1276,6 +1318,17 @@ @DEPENDS_TARGET=${DEPENDS_TARGET} ${MAKE} install .endif +# Deinstall +# +# Special target to remove installation + +.if !target(deinstall) +deinstall: + @${ECHO_MSG} "===> Deinstalling for ${PKGNAME}" + @pkg_delete -f `make package-name` + @${RM} -f ${INSTALL_COOKIE} +.endif + ################################################################ # Some more targets supplied for users' convenience ################################################################ === Satoshi
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199712280615.WAA26698>