2007-12-16 03:51:24 +01:00
|
|
|
# $NetBSD: distclean.mk,v 1.5 2007/12/16 02:51:24 obache Exp $
|
2007-10-13 15:49:19 +02:00
|
|
|
#
|
|
|
|
# === make targets for pkgsrc users ===
|
|
|
|
#
|
|
|
|
# distclean:
|
|
|
|
# Removes the distfiles of the current package.
|
|
|
|
#
|
2006-06-06 05:05:48 +02:00
|
|
|
|
|
|
|
.PHONY: pre-distclean
|
|
|
|
.if !target(pre-distclean)
|
|
|
|
pre-distclean:
|
|
|
|
@${DO_NADA}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.PHONY: distclean
|
|
|
|
.if !target(distclean)
|
|
|
|
distclean: pre-distclean clean
|
|
|
|
@${PHASE_MSG} "Dist cleaning for ${PKGNAME}"
|
2007-10-13 15:49:19 +02:00
|
|
|
${RUN} [ -d ${_DISTDIR} ] || exit 0; \
|
2006-07-19 00:41:06 +02:00
|
|
|
cd ${_DISTDIR}; \
|
2007-10-13 15:49:19 +02:00
|
|
|
${RM} -f ${ALLFILES} ${ALLFILES:S/$/.pkgsrc.resume/}
|
2006-06-06 05:05:48 +02:00
|
|
|
. if defined(DIST_SUBDIR)
|
2007-12-16 03:51:24 +01:00
|
|
|
${RUN} ${RMDIR} ${_DISTDIR} 2>/dev/null || ${TRUE}
|
2006-06-06 05:05:48 +02:00
|
|
|
. endif
|
2007-10-13 15:49:19 +02:00
|
|
|
${RUN} ${RM} -f README.html
|
2006-06-06 05:05:48 +02:00
|
|
|
.endif
|