# Makefile for branch network emulation
#
# andrew.findlay@skills-1st.co.uk
#
# $Id: Makefile,v 1.7 2009/10/31 16:16:26 afindlay Exp $

EXES=	find-r1-addr make-honeyd-bind-args make-honeyd-config \
	make-route-commands

INITS=	run-branch-network

FILES=	a1.conf a1.pl a1.snmp r1.conf r1.pl r1.snmp \
	r2.conf r2.pl r2.snmp r3.conf r3.pl r3.snmp \
	s1.conf s1.pl s1.snmp \
	s2.conf s2.pl s2.snmp \
	netconfig.pm network-config

SCRIPTS=	router-telnet.pl web.sh

MIBS = 		.index BRIDGE-MIB

# Where we install
DEST=${DESTDIR}/usr/local/lib/raddle/branch-network

# Our extra MIBs
MIBDIR=${DEST}/mibs

# Where the startup script goes
INITDIR=${DESTDIR}/etc/init.d

# Where the logfiles go
LOGDIR=${DESTDIR}/var/log/raddle

all:
	@echo "Nothing here needs building"

install:
	mkdir -p ${DEST} ${DEST}/scripts
	mkdir -p ${INITDIR}
	mkdir -p ${LOGDIR}
	mkdir -p ${MIBDIR}
	for f in ${EXES}; do install -c -m 555 $$f ${DEST}; done
	for f in ${INITS}; do install -c -m 555 $$f ${INITDIR}; done
	for f in ${FILES}; do install -c -m 444 $$f ${DEST}; done
	for f in ${SCRIPTS}; do install -c -m 555 scripts/$$f ${DEST}/scripts; done
	for f in ${MIBS}; do install -c -m 444 mibs/$$f ${MIBDIR}; done

