# $Id: Makefile 355 2010-08-16 07:16:08Z bd $

all:	glotvrecord glotvschedule-wrapper modes init

clean:
	rm glotvrecord glotvschedule-wrapper

glotvrecord:	glotvrecord.c
	gcc -g -O2 $< -o $@

glotvschedule-wrapper:	glotvschedule-wrapper.c
	gcc -g -O2 $< -o $@

modes:	
	chmod +x glotvd glotv glotvschedule xglotv input-lirc input-xboxir cgi-bin/tv.pl

init:	
	test -f etc/glotv.conf || cp etc/glotv.conf.sample etc/glotv.conf

VERSION=2.0a10
tarballs:
	(svn export . tmp && \
	 rm -rf tmp/doc/glotv1.0-docs.tar.bz2 && \
	 mv tmp glotv${VERSION} && \
	 tar jcf glotv${VERSION}.tar.bz2 glotv${VERSION} && \
	 ls -l glotv${VERSION}.tar.bz2 && \
	 rm -rf glotv${VERSION})

