diff --git a/www/mod_php3/Makefile b/www/mod_php3/Makefile index d16aaacd2373..8644a1276cf9 100644 --- a/www/mod_php3/Makefile +++ b/www/mod_php3/Makefile @@ -148,20 +148,7 @@ post-install: @${ECHO} "and in ${PHPDOCDIR}" .endif -# This was copied from bsd.port.mk because a missing post-clean target -# is needed -clean: -.if !defined(NOCLEANDEPENDS) - @${MAKE} clean-depends -.endif - @${ECHO_MSG} "===> Cleaning for ${PKGNAME}" - @if [ -d ${WRKDIR} ]; then \ - if [ -w ${WRKDIR} ]; then \ - ${RM} -rf ${WRKDIR}; \ - else \ - ${ECHO_MSG} "===> ${WRKDIR} not writable, skipping"; \ - fi; \ - fi +post-clean: @${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc .if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc) diff --git a/www/mod_php4/Makefile b/www/mod_php4/Makefile index da2931dbdd44..c7317d41c8a8 100644 --- a/www/mod_php4/Makefile +++ b/www/mod_php4/Makefile @@ -142,20 +142,7 @@ post-install: @${ECHO} "and in ${PHPDOCDIR}" .endif -# This was copied from bsd.port.mk because a missing post-clean target -# is needed -clean: -.if !defined(NOCLEANDEPENDS) - @${MAKE} clean-depends -.endif - @${ECHO_MSG} "===> Cleaning for ${PKGNAME}" - @if [ -d ${WRKDIR} ]; then \ - if [ -w ${WRKDIR} ]; then \ - ${RM} -rf ${WRKDIR}; \ - else \ - ${ECHO_MSG} "===> ${WRKDIR} not writable, skipping"; \ - fi; \ - fi +post-clean: @${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc .if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc) diff --git a/www/mod_php5/Makefile b/www/mod_php5/Makefile index da2931dbdd44..c7317d41c8a8 100644 --- a/www/mod_php5/Makefile +++ b/www/mod_php5/Makefile @@ -142,20 +142,7 @@ post-install: @${ECHO} "and in ${PHPDOCDIR}" .endif -# This was copied from bsd.port.mk because a missing post-clean target -# is needed -clean: -.if !defined(NOCLEANDEPENDS) - @${MAKE} clean-depends -.endif - @${ECHO_MSG} "===> Cleaning for ${PKGNAME}" - @if [ -d ${WRKDIR} ]; then \ - if [ -w ${WRKDIR} ]; then \ - ${RM} -rf ${WRKDIR}; \ - else \ - ${ECHO_MSG} "===> ${WRKDIR} not writable, skipping"; \ - fi; \ - fi +post-clean: @${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc .if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc)