#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-

%:
	dh $@

override_dh_installman:
	mv mp3report.1 mp3report.1.ORIGIN
	pod2man mp3report.pl mp3report.1
	dh_installman
	rm mp3report.1
	mv mp3report.1.ORIGIN mp3report.1

override_dh_installdocs:
	mv documentation.html documentation.html.ORIGIN
	mv documentation.txt documentation.txt.ORIGIN
	pod2html --infile=mp3report.pl --outfile=documentation.html
	pod2text mp3report.pl documentation.txt
	dh_installdocs
	rm documentation.html documentation.txt
	mv documentation.html.ORIGIN documentation.html
	mv documentation.txt.ORIGIN documentation.txt

override_dh_auto_install:
	install mp3report.pl $(CURDIR)/debian/mp3report/usr/bin/mp3report
