#
# Makefile to install mib files.
#

V1MIBS	= RFC1155-SMI.txt RFC1213-MIB.txt

V2MIBS = SNMPv2-CONF.txt SNMPv2-SMI.txt SNMPv2-TC.txt SNMPv2-TM.txt \
	SNMPv2-MIB.txt

V2PMIBS = SNMPv2-M2M-MIB.txt SNMPv2-PARTY-MIB.txt

V3MIBS	= SNMP-FRAMEWORK-MIB.txt SNMP-MPD-MIB.txt SNMP-TARGET-MIB.txt \
	SNMP-NOTIFICATION-MIB.txt SNMP-PROXY-MIB.txt \
	SNMP-USER-BASED-SM-MIB.txt SNMP-VIEW-BASED-ACM-MIB.txt

RFCMIBS	= IANAifType-MIB.txt IF-MIB.txt IP-MIB.txt TCP-MIB.txt UDP-MIB.txt \
	EtherLike-MIB.txt \
	HOST-RESOURCES-MIB.txt \
	RFC1271-MIB.txt

MIBS	= $(V1MIBS) $(V2MIBS) $(V2PMIBS) $(V3MIBS) $(RFCMIBS) \
	UCD-SNMP-MIB.txt IPFWACC-MIB.txt DLMOD-MIB.txt

all:

install: installdirs
	@for i in $(MIBS) ; do $(INSTALL) $(srcdir)/$$i $(mibdir) ; echo "install: installed $$i in $(mibdir)" ; done

installdirs:
	@$(SHELL) $(srcdir)/../mkinstalldirs $(mibdir)
