#!/usr/bin/make -f

PACKAGE = fuse-posixovl

export DEB_BUILD_MAINT_OPTIONS	= hardening=+all
export DEB_CFLAGS_MAINT_APPEND	= -Wall -pedantic
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

man:
	$(MAKE) -C debian -f pod2man.mk PACKAGE=mount.posixovl makeman

override_dh_auto_configure:
	[ -f Makefile ] || ./autogen.sh
	dh_auto_configure

override_dh_auto_install: man
	install -m 755 -D \
		mount.posixovl \
		$(CURDIR)/debian/$(PACKAGE)/usr/sbin/mount.posixovl

%:
	dh $@

# End of file
