diff options
author | markm <markm@FreeBSD.org> | 2002-09-20 19:32:51 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2002-09-20 19:32:51 +0000 |
commit | 2fb7a39c0fdc17568c3b60cf37e5f3c2d6dff5e4 (patch) | |
tree | 083178cbf572757b603ee69a021bcca79a88f4ea /share/mk/bsd.prog.mk | |
parent | 557fe83a6250afb6a265e7419a64f9784da04c78 (diff) | |
download | FreeBSD-src-2fb7a39c0fdc17568c3b60cf37e5f3c2d6dff5e4.zip FreeBSD-src-2fb7a39c0fdc17568c3b60cf37e5f3c2d6dff5e4.tar.gz |
Extend the lint handling a bit.
o Make it possible to prevent parts of the tree from being linted
(say) during a 'make world' by setting NOLINT in a leaf Makefile.
o Make "make lint" work (better) for executable programs.
o Clean up (nuke!) a syntax damaged pipeline.
Diffstat (limited to 'share/mk/bsd.prog.mk')
-rw-r--r-- | share/mk/bsd.prog.mk | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/share/mk/bsd.prog.mk b/share/mk/bsd.prog.mk index 15f9e37..ff1a708 100644 --- a/share/mk/bsd.prog.mk +++ b/share/mk/bsd.prog.mk @@ -3,7 +3,7 @@ .include <bsd.init.mk> -.SUFFIXES: .out .o .c .cc .cpp .cxx .C .m .y .l .s .S .asm +.SUFFIXES: .out .o .c .cc .cpp .cxx .C .m .y .l .ln .s .S .asm CFLAGS+=${COPTS} ${DEBUG_FLAGS} @@ -157,9 +157,9 @@ realinstall: _maninstall .endif .if !target(lint) -lint: ${SRCS} +lint: ${SRCS:M*.c} .if defined(PROG) - ${LINT} ${LINTFLAGS} ${CFLAGS:M-[DIU]*} ${.ALLSRC} | more 2>&1 + ${LINT} ${LINTFLAGS} ${CFLAGS:M-[DIU]*} ${.ALLSRC} .endif .endif |