# Edit the DIRs for your needs and run make

INSTALL_DIR = /usr/local

INSTALL = /usr/bin/install

all: install 

install: 
	$(INSTALL) -d $(INSTALL_DIR)/bin/
	cp perl/cd-label.pl $(INSTALL_DIR)/bin/cd-circleprint
	chmod 755 $(INSTALL_DIR)/bin/cd-circleprint
	$(INSTALL) -d /usr/share/cd-circleprint/
	cp graphics/debian_logo.eps /usr/share/cd-circleprint/debian_logo.eps
	$(INSTALL) -d $(INSTALL_DIR)/man/man1/
	pod2man --section=1 $(INSTALL_DIR)/bin/cd-circleprint > $(INSTALL_DIR)/man/man1/cd-circleprint.1

uninstall: 
	rm -f $(INSTALL_DIR)/bin/cd-circleprint
	rm -f $(INSTALL_DIR)/man/man1/cd-circleprint.1.gz
	rm -f /usr/share/cd-circleprint/*.eps

clean: uninstall
