#!/usr/bin/make -f

# DH_VERBOSE := 1

# for hardening you might like to uncomment this:
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- -DUSE_LSD2=True

override_dh_install:
	dh_install
	d-shlibmove --commit \
		    --multiarch \
		    --devunversioned \
		    --exclude-la \
		    --movedev src/lsd.h usr/include \
                    obj-*/*.so

override_dh_fixperms:
	dh_fixperms
	find debian/lsd2/usr/share/doc/lsd2/examples -type f -exec chmod -x \{\} \;
