#!/usr/bin/make -f

PACKAGE = fuse-posixovl

include /usr/share/dpkg/buildflags.mk
CFLAGS	+= -Wall -pedantic
LDFLAGS += -Wl,--as-needed
export CFLAGS LDFLAGS

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)/sbin/mount.posixovl

%:
	dh $@

# End of file
