#!/usr/bin/make -f

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

%:
	dh $@

execute_before_dh_clean:
	-mv configure~ configure
	-mv debian/*.hex .
	-@rm -rf config.status config.cache config.log Makefile
	-@find $(CURDIR)/tools -mindepth 1 -name "*.in" -prune -o -name ChangeLog -o \
	   -exec rm {} \;

execute_before_dh_autoreconf:
	cp -a configure configure~
	cp -a *.hex debian/
