#!/usr/bin/make -f

export DH_COMPAT=4

build: build-stamp
build-stamp:
	dh_testdir
	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp
	dh_clean

# Build architecture-independent files here.
binary-indep: build libforms-doc

# Build architecture-dependent files here.
binary-arch: build 

libforms-doc: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs 
	dh_installdocs forms.ps
	dh_installman
	dh_installchangelogs
#	cp forms.ps debian/libforms-doc/usr/doc/libforms-doc
	cp -a xforms-html debian/libforms-doc/usr/share/doc/libforms-doc/html
#	cp xforms.5 debian/libforms-doc/usr/X11R6/man/man5
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

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