#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1

override_dh_auto_configure:
	dh_auto_configure -- $(shell dpkg-buildflags --export=cmdline)

override_dh_auto_build:
	

override_dh_auto_install:
	dh_auto_clean
	dh_auto_build
	dh_auto_install -- INSTALL_DIR=$(CURDIR)/debian/sasquatch/usr/bin
	dh_auto_clean
	CFLAGS=-DFIX_BE dh_auto_build
	cp $(CURDIR)/squashfs-tools/sasquatch $(CURDIR)/debian/sasquatch/usr/bin/sasquatch-v4be

%:
	dh ${@} --sourcedirectory=squashfs-tools/

.PHONY: override_dh_auto_build override_dh_auto_install
