better dependency handling

This commit is contained in:
christos 2011-02-05 19:13:48 +00:00
parent 4c07b5ae7d
commit 6b997b11db
2 changed files with 7 additions and 8 deletions

View File

@ -1,9 +1,8 @@
# $NetBSD: Makefile.ops-c,v 1.2 2011/02/05 03:09:46 christos Exp $
# $NetBSD: Makefile.ops-c,v 1.3 2011/02/05 19:13:48 christos Exp $
ops.c: ops.def
ops.c: mkops ops.def Makefile.ops-c
${_MKTARGET_CREATE}
AWK=${TOOL_AWK:Q} ${HOST_SH} ${NETBSDSRCDIR}/usr.bin/xlint/lint1/mkops -c ${.ALLSRC} > ${.TARGET}
AWK=${TOOL_AWK:Q} ${HOST_SH} ${NETBSDSRCDIR}/usr.bin/xlint/lint1/mkops -c ${.ALLSRC:M*ops.def} > ${.TARGET}
SRCS+= ops.c
CLEANFILES+= ops.c
DPSRCS+= ops.c

View File

@ -1,10 +1,10 @@
# $NetBSD: Makefile.ops-h,v 1.2 2011/02/05 03:09:46 christos Exp $
# $NetBSD: Makefile.ops-h,v 1.3 2011/02/05 19:13:48 christos Exp $
ops.h: ops.def
ops.h: ops.def mkops Makefile.ops-h
${_MKTARGET_CREATE}
AWK=${TOOL_AWK:Q} ${HOST_SH} ${NETBSDSRCDIR}/usr.bin/xlint/lint1/mkops -h ${.ALLSRC} > ${.TARGET}
AWK=${TOOL_AWK:Q} ${HOST_SH} ${NETBSDSRCDIR}/usr.bin/xlint/lint1/mkops -h ${.ALLSRC:M*ops.def} > ${.TARGET}
CLEANFILES+= ops.h
DPSRCS+= ops.h
op.h: ops.h
.BEGIN: ops.h