#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
CXXFLAGS+=$(CPPFLAGS)

%:
	dh $@ --with sphinxdoc

override_dh_auto_configure:
	dh_auto_configure -- -DENABLE_LIGHTPREVIEW=OFF -DSKIP_EMBREE_INSTALL=ON -DSKIP_TBB_INSTALL=ON

override_dh_auto_test:

override_dh_auto_install:

execute_after_dh_install:
	for f in debian/ericw-tools/usr/bin/* ; do \
	  mv $$f debian/ericw-tools/usr/bin/ewtools-$$(basename $$f) ; \
	done;

override_dh_compress:
	dh_compress -Xsphinx/changelog.html
