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

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

%:
	dh $@ --buildsystem=pybuild

override_dh_installexamples:
	dh_installexamples -A mysql-connector-python/examples/*.py

override_dh_auto_clean:
	PYBUILD_DIR=mysql-connector-python dh_auto_clean -- --name mysql
	PYBUILD_DIR=mysqlx-connector-python dh_auto_clean -- --name mysqlx

override_dh_auto_build:
	PYBUILD_DIR=mysql-connector-python dh_auto_build -- --name mysql
	PYBUILD_DIR=mysqlx-connector-python dh_auto_build -- --name mysqlx

override_dh_auto_install:
	PYBUILD_DIR=mysql-connector-python dh_auto_install -- --name mysql
	PYBUILD_DIR=mysqlx-connector-python dh_auto_install -- --name mysqlx

override_dh_installdocs:
	dh_installdocs -A README.rst README.txt

# Skip unit tests for now due to differences in MySQL and MariaDB.
override_dh_auto_test:
