INSTALLDIR = /usr/local/bin/
HINWEIS0 = 'Bitte Konfigdatei in /etc mit Changelog abgleichen'
HINWEIS1 = 'Check the configuration file in /etc with the Changelog'
HINWEIS2 = 'Comparez le fichier de config. en /etc avec le Changelog'

all:
	gcc -g -ldvdread -lm -o lxdvdrip lxdvdrip.c

clean: 
	rm -f lxdvdrip *.o

install:
	cp lxdvdrip $(INSTALLDIR)
	if test -f /etc/lxdvdrip.conf; then echo $(HINWEIS0); fi;
	if test -f /etc/lxdvdrip.conf; then echo $(HINWEIS1); fi;
	if test -f /etc/lxdvdrip.conf; then echo $(HINWEIS2); else cp lxdvdrip.conf /etc; fi;
uninstall:
	rm $(INSTALLDIR)lxdvdrip
