#!/usr/bin/make -f
# debian/rules for mathpartir

#export DH_VERBOSE=1

INST=debian/mathpartir

build:
	dh_testdir
	hevea -fix mathpartir.tex

clean:
	dh_testdir
	dh_testroot
	dh_clean 
	-rm -f mathpartir.html mathpartir.htoc mathpartir.haux

install: build
	dh_testdir
	dh_testroot
	dh_prep 
	dh_installdirs
	cp mathpartir.sty $(INST)/usr/share/texmf/tex/latex/mathpartir
	cp mathpartir.tex $(INST)/usr/share/doc/texmf/latex/mathpartir
	gzip mathpartir.dvi --stdout > \
		$(INST)/usr/share/doc/texmf/latex/mathpartir/mathpartir.dvi.gz

binary-arch: build install

binary-indep: build install
	dh_testdir
	dh_testroot
	dh_installchangelogs 
	dh_installdocs mathpartir.html
	dh_installtex
	dh_compress
	dh_fixperms
	dh_link
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install
