#!/usr/bin/make -f
# -*- makefile -*-
#  $HeadURL: http://dione.no-ip.org/svn/ade/tags/1.7.6/lib/templates/lxdebian/rules $ $LastChangedRevision: 6147 $

#export DH_VERBOSE=1
PACKAGE=lxdebian
SHELL=/bin/bash
#ADETEST_FLAGS=-vk

get-orig-source:
	uscan --noconf --force-download --rename --repack --download-current-version --destdir=.

%:
	dh $@ 

override_dh_auto_configure:
	true

override_dh_auto_build:
	env -i $(MAKE) -s

override_dh_auto_test:
	env -i ADETEST_FLAGS=$(ADETEST_FLAGS) $(MAKE) -s tests

override_dh_auto_install:
	env -i WRA_PREFIX=$(CURDIR)/debian/$(PACKAGE)/usr WRA_ETC_PREFIX=$(CURDIR)/debian/$(PACKAGE)/etc $(MAKE) install 
	@#  missing directories
	@#  example config files we use
	@#  example config files we used and don't want as examples
	@#  dh will take care of installing ChangeLog as changelog.gz
	rm -f $(CURDIR)/debian/$(PACKAGE)/usr/share/doc/lxdebian/ChangeLog
	rm -f $(CURDIR)/debian/$(PACKAGE)/usr/share/doc/lxdebian/COPYING
