#!/usr/bin/make -f

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

# if yarnpkg is available use it, otherwise fall back to yarn
YARN_BIN := $(shell which yarnpkg || echo yarn)

%:
	dh "$@"

override_dh_auto_install:
	$(YARN_BIN) install
	cp src/config.template.js src/config.js
	$(YARN_BIN) run build
	mv dist/spa csc
