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

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

%:
	dh $@

override_dh_auto_build:
	rollup --banner "$$(preamble)" -g d3-array:d3,d3-path:d3 -f umd -n d3 -o build/d3-chord.js index.js
	uglifyjs --preamble "$$(preamble)" build/d3-chord.js -c -m -o build/d3-chord.min.js

override_dh_auto_test:
	tape 'test/**/*.js'

override_dh_auto_clean:
	rm -rf build
	dh_auto_clean
