#!/usr/bin/make -f
# -*- makefile -*-

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

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

#%:
#	dh $@ 

clean:
	dh_testdir
	dh_testroot
	rm -rf build *-stamp
	dh_clean

configure: configure-stamp

configure-stamp:
	dh_testdir
	dh_auto_configure
	touch configure-stamp

build: build-stamp

build-stamp: configure-stamp
	dh_testdir
	cd build && make -j
	touch build-stamp

install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs
	make DESTDIR=$(CURDIR)/debian/koverartist install

binary: binary-arch

binary-indep:

# Build architecture-dependent files here.
binary-arch: build install
	dh_testdir
	dh_testroot
	#dh_installchangelogs 
	dh_installdocs
	dh_installexamples
	dh_install
#	dh_installmenu
#	dh_installdebconf	
#	dh_installlogrotate
#	dh_installemacsen
#	dh_installpam
#	dh_installmime
#	dh_python
#	dh_installinit
#	dh_installcron
#	dh_installinfo
	dh_installman
	dh_link
	dh_strip
	dh_compress
	dh_fixperms
#	dh_perl
#	dh_makeshlibs
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb
