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

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

%:
	dh $@

override_dh_auto_build:
	mkdir node_modules
	ln -s /usr/lib/nodejs/babel-loader node_modules
	webpack index.js build/d3-path.js --target=web --output-library=d3-path --output-library-target=umd --module-bind 'js=babel-loader'

override_dh_auto_test:
	tape test/*.js

override_dh_auto_clean:
	rm -rf lib build node_modules
	dh_auto_clean
