From owner-freebsd-ports Fri Mar 3 12:18:26 2000 Delivered-To: freebsd-ports@freebsd.org Received: from sasami.jurai.net (sasami.jurai.net [63.67.141.99]) by hub.freebsd.org (Postfix) with ESMTP id 6E1A037B67F; Fri, 3 Mar 2000 12:18:14 -0800 (PST) (envelope-from winter@jurai.net) Received: from localhost (winter@localhost) by sasami.jurai.net (8.9.3/8.8.7) with ESMTP id PAA81375; Fri, 3 Mar 2000 15:18:10 -0500 (EST) Date: Fri, 3 Mar 2000 15:18:10 -0500 (EST) From: "Matthew N. Dodd" To: Satoshi - Ports Wraith - Asami Cc: "Chris D. Faulhaber" , freebsd-ports@freebsd.org Subject: Re: mod_php4 and other questions. In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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