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

MFC after:	1 week
This commit is contained in:
Enji Cooper 2017-01-09 03:14:04 +00:00
parent 306324d7f2
commit 6fec23edd3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=311740
2 changed files with 6 additions and 4 deletions

View File

@ -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}

View File

@ -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}