Use standard CLEANFILES/CLEANDIRS and clean target in bsd.obj.mk.

This commit is contained in:
Hiroki Sato 2013-12-01 15:24:35 +00:00
parent 464485c8d0
commit 46b13263cf

View File

@ -91,7 +91,12 @@ IMAGES+= memstick.img
IMAGES+= mini-memstick.img
.endif
CLEANFILES= packagesystem *.txz MANIFEST system ${IMAGES}
CLEANDIRS= dist ftp release bootonly dvd
beforeclean:
chflags -R noschg .
.include <bsd.obj.mk>
clean: beforeclean
base.txz:
mkdir -p ${DISTDIR}
@ -233,15 +238,6 @@ release:
${MAKE} -C ${.CURDIR} ${.MAKEFLAGS} obj
${MAKE} -C ${.CURDIR} ${.MAKEFLAGS} ${RELEASE_TARGETS}
clean:
chflags -R noschg .
rm -rf dist ftp
rm -f packagesystem
rm -f *.txz MANIFEST
rm -f system
rm -rf release bootonly dvd
rm -f ${IMAGES}
install:
.if defined(DESTDIR) && !empty(DESTDIR)
mkdir -p ${DESTDIR}