#!/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

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

# deepin-manual is not packaged in Debian; its assets are 41 MB of images.
execute_after_dh_auto_install:
	rm -rf debian/deepin-image-viewer/usr/share/deepin-manual
