#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_test:
	# DBus-related tests can't run in parallel
	dh_auto_test --no-parallel

execute_after_dh_auto_install:
	@$(foreach f, $(shell find debian/tmp/ -name fcitx.png -o -name fcitx.svg), \
		mv -v $(f) $(subst fcitx,fcitx5,$(f)); \
	)
