#!/usr/bin/make -f

# Define Q_OS_LINUX for kfreebsd and hurd.
# All debian systems have a same directory structure
DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS 2>/dev/null)
ifneq ($(DEB_HOST_ARCH_OS),linux)
	export CPPFLAGS = -DQ_OS_LINUX $(shell dpkg-buildflags --get CPPFLAGS)
endif

%:
	dh  $@ 

override_dh_auto_build:
	dh_auto_build
	lrelease -nounfinished $(CURDIR)/xflr5_6.09.pro
	#cd $(CURDIR)/doc/latex && $(MAKE)

override_dh_auto_clean:
	dh_auto_clean
	find $(CURDIR)/translations -name "*.qm" | xargs rm -f
	#cd $(CURDIR)/doc/latex && $(MAKE) clean

override_dh_compress:
	dh_compress -X.pdf
