#!/usr/bin/make -f
#export DH_VERBOSE = 1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic

include /usr/share/dpkg/default.mk


%:
	dh $@ --buildsystem=cmake --no-parallel

override_dh_auto_configure:
	dh_auto_configure -- \
		-DAPP_VERSION=$(DEB_VERSION_UPSTREAM) \
		-DVERSION=$(DEB_VERSION_UPSTREAM) \
		-DBUILD_DFM_PLUGIN=OFF

execute_after_dh_auto_install:
	find debian/deepin-deb-installer -name .DS_Store -delete

execute_after_dh_auto_clean:
	find translations -type f -name *.qm -delete
