#    CDplayer 2.0 - command line Audio CDplayer
#    Copyright (C) 1993,1994 Mark Buckaway (mark@datasoft.com)
# 
#    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., 675 Mass Ave, Cambridge, MA 02139, USA.

.PHONY:	clean src install

all:	config src

src:
	cd src;$(MAKE)

config:	src/Makefile

src/Makefile:
	@sh configure
	@echo "Please run make again to build CDplayer and TkCD."

clean:	
	cd src;$(MAKE) clean
	rm -f bin/cdplayer

mrproper: clean
	rm -f bin/tkcd install.sh bin/tkcdrc src/Makefile

install:	all
	@sh install.sh

tar:
	rm -f ../CDplayer-2.0.tar.gz CDplayer.uue
	tar -C .. -cvvzf ../CDplayer-2.0.tar.gz cdplayer-2.0

uuencode: tar
	uuencode ../CDplayer-2.0.tar.gz CDplayer-2.0.tar.gz >CDplayer.uue
	@echo "CDplayer.uue created."
