#!/usr/bin/make -f
#export DH_VERBOSE = 1

%:
	dh $@ --buildsystem=cmake

override_dh_auto_install:
	dh_auto_install
	# Building wasm.js from source requires emscripten
	# which would create a circular dependency chain
	$(RM) debian/binaryen/usr/share/binaryen/wasm.js

override_dh_auto_test:
	python3 check.py --binaryen-bin=./$(DEB_HOST_MULTIARCH)/bin/ --no-torture wasm-opt wasm-dis crash spec gtest
