# Project    : ipv6calc/databases/ieee-oui
# File       : Makefile
# Version    : $Id: fb3520ff31a0768e7446766edeffcc0dc7b7a92e $
# Copyright  : 2002-2008 by Peter Bieringer <pb (at) bieringer.de>
#
# Information:
#  Makefile for ieee-oui

FILE = oui.txt
BASEURL = http://standards.ieee.org/regauth/oui/

all:
		test -f dbieee_oui.h || ${MAKE} update

install:
		echo "Nothing to do"

create:
		./create_ieee_oui_headerfile.pl $(FILE)

update:
		echo "Download new version of file"
		wget $(BASEURL)$(FILE) --timestamp
		${MAKE} create

updateclean:
		echo "Remove header file"
		rm -f dbieee_oui.h
		${MAKE} distclean

distclean:
		echo "Remove database file"
		rm -f $(FILE)

autoclean:
		echo "Nothing to do"

clean:
		echo "Nothing to do"
