fix the cleanfiles for hooks mechanism

This commit is contained in:
mrg 2018-03-13 03:17:01 +00:00
parent 76c587cf23
commit 7b319e81c3
2 changed files with 6 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.hooks,v 1.3 2017/07/23 01:10:50 mrg Exp $
# $NetBSD: Makefile.hooks,v 1.4 2018/03/13 03:17:01 mrg Exp $
#
# Makefile fragment to build genhooks and *target-hooks*.h
@ -9,8 +9,9 @@ gen${f}.lo: ${HH} gen${f}.c
gen${f}: gen${f}.lo ${GENPROG_ERROR_DEPENDS}
${_MKTARGET_LINK}
${HOST_LINK.cc} -o ${.TARGET} ${.ALLSRC} ${NBCOMPATLIB} ${HOSTLIBIBERTY} ${LDFLAGS.${.TARGET}}
CLEANFILES+= genhooks
CLEANFILES+= genhooks gen${f}.lo
.endfor
CLEANFILES+= ${GENPROG_ERROR_DEPENDS}
# and now the outputs of genhooks
target-hooks-def.h: genhooks

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.hooks,v 1.1 2014/03/01 10:00:31 mrg Exp $
# $NetBSD: Makefile.hooks,v 1.2 2018/03/13 03:17:01 mrg Exp $
#
# Makefile fragment to build genhooks and *target-hooks*.h
@ -9,8 +9,9 @@ gen${f}.lo: ${HH} gen${f}.c
gen${f}: gen${f}.lo ${GENPROG_ERROR_DEPENDS}
${_MKTARGET_LINK}
${HOST_LINK.cc} -o ${.TARGET} ${.ALLSRC} ${NBCOMPATLIB} ${HOSTLIBIBERTY} ${LDFLAGS.${.TARGET}}
CLEANFILES+= genhooks
CLEANFILES+= genhooks gen${f}.lo
.endfor
CLEANFILES+= ${GENPROG_ERROR_DEPENDS}
# and now the outputs of genhooks
target-hooks-def.h: genhooks