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

%:
	dh $@ --with python3

override_dh_auto_clean:
	dh_auto_clean
	rm -f Makefile
	rm -f config.status
	rm -f ebin/tsung.app
	rm -f ebin/tsung_controller.app
	rm -f ebin/tsung_recorder.app
	rm -f examples/*.xml
	rm -f src/tsung/tsung.app.src
	rm -f src/tsung_controller/tsung_controller.app.src
	rm -f src/tsung/tsung.app
	rm -f src/tsung_controller/tsung_controller.app
	rm -f src/tsung_recorder/tsung_recorder.app
	cd $(CURDIR)/docs/ && make clean

override_dh_gencontrol:
	erlang-depends
	dh_gencontrol

override_dh_auto_test:

override_dh_auto_build:
	dh_auto_build
	cd $(CURDIR)/docs/ && make html

override_dh_auto_install:
	dh_auto_install
	find $(CURDIR)/debian/tsung/usr/lib -type d -empty -delete
