#!/usr/bin/make -f

export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

%:
	dh $@

override_dh_auto_build:
	dh_auto_build -- PREFIX=/usr

override_dh_auto_install:
	dh_auto_install -- PREFIX=/usr

get-orig-source:
	uscan --verbose --force-download --no-symlink
	@if test -e ../wmcliphist-*.download ; then \
		rename -f -v "s/wmcliphist-(.+)\.download/wmcliphist_\1\.orig\.tar\.gz/" \
			../wmcliphist-*.download; \
	fi
