summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bsnmpd
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2017-01-16 06:57:52 +0000
committerngie <ngie@FreeBSD.org>2017-01-16 06:57:52 +0000
commit34667460f5d08c2dc59e0ce931a1089be4644803 (patch)
tree1dd1d74d8dd0f6c0c312a64b3a8cd7f05206b289 /usr.sbin/bsnmpd
parentaf4ba7f997d49e52c949683ec1186ca64fd5b57d (diff)
downloadFreeBSD-src-34667460f5d08c2dc59e0ce931a1089be4644803.zip
FreeBSD-src-34667460f5d08c2dc59e0ce931a1089be4644803.tar.gz
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
Diffstat (limited to 'usr.sbin/bsnmpd')
-rw-r--r--usr.sbin/bsnmpd/modules/snmp_hostres/Makefile5
-rw-r--r--usr.sbin/bsnmpd/modules/snmp_mibII/Makefile5
2 files changed, 6 insertions, 4 deletions
diff --git a/usr.sbin/bsnmpd/modules/snmp_hostres/Makefile b/usr.sbin/bsnmpd/modules/snmp_hostres/Makefile
index b1aee6a..0895f56 100644
--- a/usr.sbin/bsnmpd/modules/snmp_hostres/Makefile
+++ b/usr.sbin/bsnmpd/modules/snmp_hostres/Makefile
@@ -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}
diff --git a/usr.sbin/bsnmpd/modules/snmp_mibII/Makefile b/usr.sbin/bsnmpd/modules/snmp_mibII/Makefile
index bdcf82e..6362c0b 100644
--- a/usr.sbin/bsnmpd/modules/snmp_mibII/Makefile
+++ b/usr.sbin/bsnmpd/modules/snmp_mibII/Makefile
@@ -22,6 +22,7 @@ BMIBS= BEGEMOT-IP-MIB.txt BEGEMOT-MIB2-MIB.txt
.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}
OpenPOWER on IntegriCloud