summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2017-01-16 06:58:16 +0000
committerngie <ngie@FreeBSD.org>2017-01-16 06:58:16 +0000
commit2513db193be1d4beeddfdae5e6cf3082a5ecdd08 (patch)
tree1cbd122b8e5aa7e69914176421b749315fb53ccd /usr.sbin
parent0c43ab0019c8c5e6dcaa192512f2ae87fda2da59 (diff)
downloadFreeBSD-src-2513db193be1d4beeddfdae5e6cf3082a5ecdd08.zip
FreeBSD-src-2513db193be1d4beeddfdae5e6cf3082a5ecdd08.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')
-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 e4cdf57..e1a57f3 100644
--- a/usr.sbin/bsnmpd/modules/snmp_hostres/Makefile
+++ b/usr.sbin/bsnmpd/modules/snmp_hostres/Makefile
@@ -77,6 +77,7 @@ LDADD= -lkvm -ldevinfo -lm -lgeom -lmemstat
printcap.So: 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