* Remove piping the outputs of running ${LINT} to more(1)
* Don't stop when ${LINT} returns an error.
* Pass ${CFLAGS} beginning with '-I' to ${LINT} and ensure the
directory is separated with a space.
These changes make it easier to use coccinelle and other checkers as
${LINT}.
# from: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91
# $FreeBSD: src/share/mk/bsd.prog.mk,v 1.86.2.17 2002/12/23 16:33:37 ru Exp $
-# $DragonFly: src/share/mk/bsd.prog.mk,v 1.14 2008/05/19 10:26:02 corecode Exp $
.include <bsd.init.mk>
.if !target(lint)
lint: ${SRCS}
.if defined(PROG)
- @${LINT} ${LINTFLAGS} ${.ALLSRC} | more 2>&1
+ -@${LINT} ${LINTFLAGS} ${CFLAGS:M-I*:S/-I/-I /g} ${.ALLSRC}
.endif
.endif