Date: Fri, 3 Mar 2000 15:18:10 -0500 (EST) From: "Matthew N. Dodd" <winter@jurai.net> To: Satoshi - Ports Wraith - Asami <asami@freebsd.org> Cc: "Chris D. Faulhaber" <jedgar@fxp.org>, freebsd-ports@freebsd.org Subject: Re: mod_php4 and other questions. Message-ID: <Pine.BSF.4.21.0003031516480.690-100000@sasami.jurai.net> In-Reply-To: <vqc3dq7kfl9.fsf@silvia.hip.berkeley.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On 3 Mar 2000, Satoshi - Ports Wraith - Asami wrote: > Something like this? Sure. I've got another Apache related question now... What prevents us from always building Apache with EAPI? This would allow us to split out mod_ssl from the apache port... > === > Index: bsd.port.mk > =================================================================== > RCS file: /usr/cvs/ports/Mk/bsd.port.mk,v > retrieving revision 1.330 > diff -u -r1.330 bsd.port.mk > --- bsd.port.mk 2000/03/03 01:23:49 1.330 > +++ bsd.port.mk 2000/03/03 19:36:41 > @@ -2066,17 +2066,8 @@ > > # Cleaning up > > -.if !target(pre-clean) > -pre-clean: > - @${DO_NADA} > -.endif > - > -.if !target(clean) > -clean: pre-clean > -.if !defined(NOCLEANDEPENDS) > - @${MAKE} ${__softMAKEFLAGS} clean-depends > -.endif > - @${ECHO_MSG} "===> Cleaning for ${PKGNAME}" > +.if !target(do-clean) > +do-clean: > @if [ -d ${WRKDIR} ]; then \ > if [ -w ${WRKDIR} ]; then \ > ${RM} -rf ${WRKDIR}; \ > @@ -2084,6 +2075,21 @@ > ${ECHO_MSG} "===> ${WRKDIR} not writable, skipping"; \ > fi; \ > fi > +.endif > + > +.if !target(clean) > +clean: > +.if !defined(NOCLEANDEPENDS) > + @${MAKE} ${__softMAKEFLAGS} clean-depends > +.endif > + @${ECHO_MSG} "===> Cleaning for ${PKGNAME}" > +.if target(pre-clean) > + @${MAKE} ${__softMAKEFLAGS} pre-clean > +.endif > + @${MAKE} ${__softMAKEFLAGS} do-clean > +.if target(post-clean) > + @${MAKE} ${__softMAKEFLAGS} post-clean > +.endif > .endif > > .if !target(pre-distclean) > === > > I changed the clean target to a skeleton and made it call > clean-depends, pre-clean, do-clean (which does the actual cleaning) > and then post-clean. > > (I could even let it join the _PORT_USE macro but I'm not sure if I'd > want to clutter that macro even more....) > > Satoshi > -- | Matthew N. Dodd | '78 Datsun 280Z | '75 Volvo 164E | FreeBSD/NetBSD | | winter@jurai.net | 2 x '84 Volvo 245DL | ix86,sparc,pmax | | http://www.jurai.net/~winter | This Space For Rent | ISO8802.5 4ever | To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0003031516480.690-100000>