#
#    eee-bpw Makefile build instructions
#    Copyright (C) 2008  James Cameron (quozl@laptop.org)
#
#    This program is free software; you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation; either version 2 of the License, or
#    (at your option) any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with this program; if not, write to the Free Software
#    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#

all:
	echo ok

install:
	mkdir -p $(DESTDIR)/etc/init.d/
	cp etc/init.d/bpw $(DESTDIR)/etc/init.d/
	chmod +x $(DESTDIR)/etc/init.d/bpw
	mkdir -p $(DESTDIR)/etc/ppp/peers/
	cp etc/ppp/peers/bpw $(DESTDIR)/etc/ppp/peers/
	mkdir -p $(DESTDIR)/etc/chatscripts/
	cp etc/chatscripts/bpw{,-test} $(DESTDIR)/etc/chatscripts
	mkdir -p $(DESTDIR)/usr/sbin/
	cp usr/sbin/bpw{,-test,config} $(DESTDIR)/usr/sbin/
	chmod +x $(DESTDIR)/usr/sbin/bpw{,-test,config}
	mkdir -p $(DESTDIR)/etc/udev/rules.d/
	cp etc/udev/rules.d/99-bpw.rules $(DESTDIR)/etc/udev/rules.d/
	mkdir -p $(DESTDIR)/usr/share/doc/eee-bpw
	cp COPYING TODO ChangeLog $(DESTDIR)/usr/share/doc/eee-bpw
	mkdir -p $(DESTDIR)/etc/
	cp etc/bpw.conf $(DESTDIR)/etc/

clean:
	echo ok
