# Makefile for t2t installation
#
# See http://www.scholnick.net/t2t for details

# Edit as necessary

PREFIX       = /usr/local
LIBRARY_PATH = /Library/Perl

all: main modules doc rc

main:
	cp t2t.pl $(PREFIX)/bin/t2t
	chmod 755 $(PREFIX)/bin/t2t

modules:
	cp -R T2t $(LIBRARY_PATH)
	chmod 755 $(LIBRARY_PATH)/T2t
	chmod a+r $(LIBRARY_PATH)/T2t/*.pm
	
doc:
	install -m 644 t2t.1 $(PREFIX)/share/man/man1

rc:
	cp t2t.rc $(HOME)/.t2trc
