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

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export HOME=/tmp
export NODE_PATH=debian/node_modules

include /usr/share/dpkg/pkg-info.mk

%:
	dh $@

override_dh_auto_build:
	dh_auto_build
	echo $(DEB_VERSION) > .commithash \
	&& $(NODE_PATH)/bin/rollup -c
	sed -i 's/..\/dist\/rollup.js/rollup/' bin/rollup
#workaround for likely rollup-pluginutils bug
	sed -i 's/src\/create/create/' dist/rollup.js

override_dh_auto_clean:
	dh_auto_clean
	rm -rf dist/ bin/rollup .commithash

#override_dh_auto_test:



