#!/usr/bin/make -f buildbasedir := $(CURDIR)/debian/build DEB_BUILDDIR := $(buildbasedir) include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/rules/autoreconf.mk include /usr/share/cdbs/1/class/autotools.mk include /usr/share/cdbs/1/rules/simple-patchsys.mk DEB_CONFIGURE_EXTRA_FLAGS += --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) PY_VERSIONS = $(shell pyversions --requested debian/control) # Python rules configure-stamp-%: mkdir $(buildbasedir)/$* cd $(buildbasedir)/$* && PYTHON=`which $*` $(DEB_CONFIGURE_SCRIPT_ENV) \ $(DEB_CONFIGURE_SCRIPT) \ $(DEB_CONFIGURE_NORMAL_ARGS) \ $(cdbs_configure_flags) \ $(DEB_CONFIGURE_EXTRA_FLAGS) \ $(DEB_CONFIGURE_USER_FLAGS) touch $@ configure/python-libmimic:: $(addprefix configure-stamp-, $(PY_VERSIONS)) build-stamp-%: make -C $(buildbasedir)/$* touch $@ build/python-libmimic:: $(addprefix build-stamp-, $(PY_VERSIONS)) install-stamp-%: make -C $(buildbasedir)/$* install DESTDIR=$(DEB_DESTDIR) # stop shipping *.a and *.la files for the Python module; # python-support moves them anyway (#412477) find $(DEB_DESTDIR)/usr/lib/$* -name \*.a -exec rm -f '{}' \; find $(DEB_DESTDIR)/usr/lib/$* -name \*.la -exec rm -f '{}' \; touch $@ install/python-libmimic:: $(addprefix install-stamp-, $(PY_VERSIONS)) binary-install/python-libmimic:: dh_python2 -ppython-libmimic clean:: -rm -rf $(buildbasedir) -rm -rf $(addprefix configure-stamp-, $(PY_VERSIONS)) -rm -rf $(addprefix build-stamp-, $(PY_VERSIONS)) -rm -rf $(addprefix install-stamp-, $(PY_VERSIONS))