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

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

%:
	dh $@

override_dh_auto_build:
	dh_auto_build
	HOME=/tmp npm install babel-cli rollup rollup-plugin-babel \
	rollup-plugin-node-resolve babel-plugin-transform-flow-strip-types \
	babel-preset-es2015 babel-preset-stage-0
	node_modules/.bin/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



