#!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 SHELL := sh -e DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH) DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=-lto %: dh ${@} override_dh_autoreconf: ln -s /usr/share/gettext/config.rpath $(CURDIR) dh_autoreconf override_dh_auto_configure: dh_auto_configure -- --disable-util --libdir=/usr/lib/$(DEB_HOST_MULTIARCH) MOUNT_FUSE_PATH=/usr/sbin override_dh_compress: dh_compress -Xusr/share/doc/libfuse-dev/examples override_dh_fixperms: dh_fixperms ifeq ($(DEB_BUILD_ARCH),linux) chmod 0755 debian/fuse/usr/bin/fusermount endif override_dh_install: # remove unused files rm -f debian/tmp/etc/init.d/fuse rm -rf debian/tmp/etc/udev/ rm -f debian/tmp/usr/lib/*/*.la dh_install # adding initramfs-tools integration install -D -m 0755 debian/local/fuse.hook debian/fuse/usr/share/initramfs-tools/hooks/fuse # adding kmod integration # install -D -m 0644 debian/local/fuse.kmod debian/fuse/lib/modules-load.d/fuse.conf .PHONY: override_dh_autoreconf override_dh_auto_configure \ override_dh_compress override_dh_fixperms \ override_dh_install override_dh_link