Remove the '${.CURDIR}/' part in CLEANFILES, so that the files will be

deleted in the case of an objdir too.
Proposed to current-users on 20-Jul-2008 with no reply..

XXX The '*~' part should be removed too, but I leave that to someone else
    since it is used in a lot of other Makefiles too and there maybe a
    valid reason for it.
This commit is contained in:
veego 2008-07-27 07:57:40 +00:00
parent 154fe9b1d9
commit e012f27d4d

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.9 2008/05/01 23:14:35 xtraeme Exp $
# $NetBSD: Makefile.inc,v 1.10 2008/07/27 07:57:40 veego Exp $
.include "../Makefile.inc"
@ -16,7 +16,7 @@ LKM_ISA_DRVNAME_CA?= ${LKM_ISA_DRVNAME}
NOMAN= # defined
WARNS= 4
CLEANFILES+= ${.CURDIR}/${TEMPL_FILE:S/.tmpl//} *~ ${KMOD}
CLEANFILES+= ${TEMPL_FILE:S/.tmpl//} *~ ${KMOD}
DPSRCS+= ${TEMPL_FILE:S/.tmpl//}