#
#  Makefile for installing htmlpp upon a Debian GNU/Linux
# system.
#
# Steve
# ---
# <skx@tardis.ed.ac.uk>

install:
	install -m 755 htmlpp /usr/bin/htmlpp
	install htmlpp.d /usr/lib/perl5
	install findfile.pl /usr/lib/perl5
	install sflcvdp.pl /usr/lib/perl5
	install sfldate.pl /usr/lib/perl5
	install shellwd.pl /usr/lib/perl5
	install textdb.pl /usr/lib/perl5

install-docs:
	install -d /usr/share/doc/htmlpp/
	cp -r docs/ /usr/share/doc/htmlpp/
	cp -r examples/ /usr/share/doc/htmlpp/

uninstall:
	rm -f /usr/bin/htmlpp
	rm -f /usr/lib/perl5/htmlpp.d
	rm -f /usr/lib/perl5/findfile.pl
	rm -f /usr/lib/perl5/sflcvdp.pl
	rm -f /usr/lib/perl5/sfldate.pl
	rm -f /usr/lib/perl5/shellwd.pl
	rm -f /usr/lib/perl5/textdb.pl


clean:
	echo "Clean not supported"
