#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/cmake.mk
DEB_CMAKE_EXTRA_FLAGS=-DCUSTOM_PERL_SITE_ARCH_DIR=$(shell perl -MConfig -e 'print $$Config{installvendorarch}')

ARCHLIB := $(shell perl -MConfig -e 'print substr($$Config{vendorarch},1)')

clean::
	$(RM) --verbose debian/*.install

common-install-arch::
	for i in debian/*.install.in; do \
		sed -e 's,@ARCHLIB@,$(ARCHLIB),g' $$i > debian/$$(basename $$i .in); \
	done
