#!/usr/bin/make -f

%:
	dh $@

override_dh_install:
	dh_install
	cd remmina/po; intltool-update --pot --verbose -g remmina
	[ -d debian/remmina-common ] && \
		find $(CURDIR)/debian/remmina-common -name "*remmina.desktop" -delete && \
		find $(CURDIR)/debian/remmina-common -type d -empty -delete || true

override_dh_makeshlibs:
	for plugin in rdp vnc xdmcp nx telepathy; do \
		dh_makeshlibs -premmina-plugin-$$plugin -Xremmina-plugin-$$plugin.so; \
	done
	
override_dh_clean:
	-rm remmina/po/remmina.pot
	dh_clean
