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

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export HOME=/tmp
export NODE_PATH=node_modules
 
%:
	dh $@

override_dh_auto_build:
	dh_auto_build
	npm install rollup-plugin-babel rollup-plugin-node-resolve \
	regexpu-core babel-plugin-external-helpers magic-string
	rollup -c

override_dh_fixperms:
	dh_fixperms
	chmod +x debian/node-babylon/usr/lib/nodejs/babylon/bin/babylon.js

override_dh_auto_clean:
	dh_auto_clean
	rm -rf node_modules lib

