#!/usr/bin/make -f
include /usr/share/dpkg/architecture.mk

export VERSION := $(shell awk -F'[()]' '{print $$2; exit}' debian/changelog) # '
ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
export CROSS := 1
endif

execute_after_dh_auto_build:
	chrpath -d liblinkbag.so # something in the dh machinery makes make add -Wl,-rpath=. to the liblinkbag.so recipe. this doesn't happen upstream or when i try to reproduce it

override_dh_installchangelogs:
	dh_installchangelogs debian/changelog.upstream

override_dh_installdocs:
	dh_installdocs README.md

%:
	dh $@
