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.lib.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.lib.mk')
-rw-r--r-- | share/mk/bsd.lib.mk | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/share/mk/bsd.lib.mk b/share/mk/bsd.lib.mk index 1e70165..c3eabb3 100644 --- a/share/mk/bsd.lib.mk +++ b/share/mk/bsd.lib.mk @@ -204,7 +204,7 @@ lib${LIB}_pic.a: ${SOBJS} ${RANLIB} ${.TARGET} .endif -.if defined(WANT_LINT) && defined(LIB) && !empty(LIB) +.if defined(WANT_LINT) && !defined(NOLINT) && defined(LIB) && !empty(LIB) LINTLIB= llib-l${LIB}.ln _LIBS+= ${LINTLIB} LINTOBJS+= ${SRCS:M*.c:.c=.ln} @@ -273,7 +273,7 @@ _libinstall: ${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ ${_INSTALLFLAGS} lib${LIB}_pic.a ${DESTDIR}${LIBDIR} .endif -.if defined(WANT_LINT) && defined(LIB) && !empty(LIB) +.if defined(WANT_LINT) && !defined(NOLINT) && defined(LIB) && !empty(LIB) ${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ ${_INSTALLFLAGS} ${LINTLIB} ${DESTDIR}${LINTLIBDIR} .endif @@ -292,7 +292,7 @@ realinstall: _maninstall .if !target(lint) lint: ${SRCS:M*.c} - ${LINT} ${LINTOBJFLAGS} ${CFLAGS:M-[DIU]*} ${.ALLSRC} + ${LINT} ${LINTFLAGS} ${CFLAGS:M-[DIU]*} ${.ALLSRC} .endif .if !defined(NOMAN) |