#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
#
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.
#
# Modified to make a template file for a multi-binary package with separated
# build-arch and build-indep targets  by Bill Allombert 2001

# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1

# Never distribute source control meta information
export DH_ALWAYS_EXCLUDE=.svn:.git

# This has to be exported to make some magic below work.
export DH_OPTIONS

#!/usr/bin/make -f
clean::
	dh_testdir
	dh_clean
	rm -rf debian/tmp 

install: 
	mkdir -p debian/tmp/etc/
	mkdir -p debian/tmp/etc/network/
	mkdir -p debian/tmp/etc/apache2/conf.d/
	mkdir -p debian/tmp/etc/bind/
	mkdir -p debian/tmp/etc/default/
	mkdir -p debian/tmp/home/openbts/
	cp rc.local.example debian/tmp/etc/rc.local
	cp rsyslog.conf debian/tmp/etc/rsyslog.conf
	cp interfaces debian/tmp/etc/network/interfaces
	cp ntp.conf debian/tmp/etc/ntp.conf
	cp httpd.conf debian/tmp/etc/apache2/httpd.conf
	cp auth debian/tmp/etc/apache2/conf.d/auth
	cp named.conf.options debian/tmp/etc/bind/named.conf.options
	cp rangeSupport debian/tmp/home/openbts/
	cp bind9 debian/tmp/etc/default/bind9
	cp grub debian/tmp/etc/default/grub

binary-indep: install
	dh_testdir
	dh_testroot
	dh_installdocs
	dh_installchangelogs
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary-arch:
	# nothing to do

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary
