#!/usr/bin/make -f
export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
include /usr/share/dpkg/default.mk
export ERL_COMPILER_OPTIONS=deterministic


%:
	dh $@ --buildsystem=rebar --with rebar


override_dh_auto_configure:
	sed -i "s/git\}/\"$(DEB_VERSION_UPSTREAM)\"\}/" src/folsom.app.src


override_dh_auto_clean:
	dh_auto_clean
	rm -rf .eunit .rebar ebin
