svn commit: r312262 - in stable/11/usr.sbin/bsnmpd/modules: snmp_hostres snmp_mibII
Ngie Cooper
ngie at FreeBSD.org
Mon Jan 16 06:57:54 UTC 2017
Author: ngie
Date: Mon Jan 16 06:57:52 2017
New Revision: 312262
URL: https://svnweb.freebsd.org/changeset/base/312262
Log:
MFC r311740:
Improve the smilint target in the hostres and mibII modules
- Mark the smilint target .PHONY so it's always executed when requested
- Leverage .PATH for BMIBS instead of spelling the path out longhand
for them
Modified:
stable/11/usr.sbin/bsnmpd/modules/snmp_hostres/Makefile
stable/11/usr.sbin/bsnmpd/modules/snmp_mibII/Makefile
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/usr.sbin/bsnmpd/modules/snmp_hostres/Makefile
==============================================================================
--- stable/11/usr.sbin/bsnmpd/modules/snmp_hostres/Makefile Mon Jan 16 06:56:12 2017 (r312261)
+++ stable/11/usr.sbin/bsnmpd/modules/snmp_hostres/Makefile Mon Jan 16 06:57:52 2017 (r312262)
@@ -76,6 +76,7 @@ LIBADD= kvm devinfo m geom memstat
printcap.pico: printcap.c
${CC} ${PICFLAG} -DPIC ${CFLAGS:C/^-W.*//} -c ${.IMPSRC} -o ${.TARGET}
-smilint:
+smilint: .PHONY
+smilint: ${BMIBS}
env SMIPATH=.:/usr/share/snmp/mibs:/usr/local/share/snmp/mibs \
- smilint -c /dev/null -l6 -i group-membership BEGEMOT-HOSTRES-MIB
+ smilint -c /dev/null -l6 -i group-membership ${.ALLSRC}
Modified: stable/11/usr.sbin/bsnmpd/modules/snmp_mibII/Makefile
==============================================================================
--- stable/11/usr.sbin/bsnmpd/modules/snmp_mibII/Makefile Mon Jan 16 06:56:12 2017 (r312261)
+++ stable/11/usr.sbin/bsnmpd/modules/snmp_mibII/Makefile Mon Jan 16 06:57:52 2017 (r312262)
@@ -22,6 +22,7 @@ BMIBS= BEGEMOT-IP-MIB.txt BEGEMOT-MIB2-M
.include <bsd.snmpmod.mk>
-smilint:
+smilint: .PHONY
+smilint: ${BMIBS}
env SMIPATH=/usr/share/snmp/mibs:/usr/local/share/snmp/mibs \
- smilint -c /dev/null -l6 -i group-membership ${BMIBS:C/^/${CONTRIB}\/snmp_mibII\//}
+ smilint -c /dev/null -l6 -i group-membership ${.ALLSRC}
More information about the svn-src-stable
mailing list