#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS=hardening=+all
export DH_VERBOSE=1
export V=1 # let `make` be verbose

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

override_dh_install:
	find $(CURDIR)/debian/tmp -name *.la -delete
	rm $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/eatmydata.sh
	install -D $(CURDIR)/debian/eatmydata.sh \
		$(CURDIR)/debian/eatmydata/usr/bin/eatmydata
	dh_install --list-missing

%:
	dh $@ --with autoreconf
