#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

build:
	dh_testdir
	scons

clean::
	scons -c
	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs
	scons DESTDIR=`pwd`/debian/glosung install
	mv `pwd`/debian/glosung/usr/share/doc/glosung-* `pwd`/debian/glosung/usr/share/doc/glosung
#	scons DESTDIR=`pwd`/debian/tmp install
#	$(MAKE) DESTDIR=`pwd`/debian/tmp $@
#	dh_movefiles

# Build architecture-independent files here.
binary-indep: install
# We have nothing to do by default.

# Build architecture-dependent files here.
binary-arch: install
	dh_testdir
	dh_testroot
	dh_installdebconf
	dh_installdocs 
	dh_installmenu
#	dh_undocumented -p glosung	glosung.1
	dh_installchangelogs
	dh_link
	dh_strip
	dh_compress
	dh_fixperms
	dh_installdirs
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
#	dh_md5sums
	dh_builddeb

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