#!/usr/bin/make -f

# DH_VERBOSE := 1
export LC_ALL=C.UTF-8
export PYBUILD_NAME=railroad
export PYBUILD_TEST_ARGS={interpreter} -m railroad unicode

override_dh_auto_test:
	dh_auto_test --buildsystem=pybuild -ppython3-railroad -- --test-custom
	dh_auto_test --buildsystem=nodejs -pnode-railroad-diagrams

execute_after_dh_installdocs:
	dh_nodejs_autodocs node-railroad-diagrams

%:
	dh $@ --with=python3 --buildsystem=pybuild -Nnode-railroad-diagrams
	dh $@ --with=nodejs --buildsystem=nodejs -Npython3-railroad -Npython3-railroad-diagrams
