#!/usr/bin/make -f DEB_BUILD_PARALLEL = 1 include /usr/share/cdbs/1/rules/utils.mk include /usr/share/cdbs/1/class/autotools.mk include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/rules/autoreconf.mk pkg = $(DEB_SOURCE_PACKAGE) stem = $(patsubst lib%,%,$(pkg)) abi = 1 lib = lib$(stem) libpkg = lib$(stem)$(abi) devpkg = lib$(stem)-dev DEB_CONFIGURE_EXTRA_FLAGS += --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) export LIBSASS_VERSION = $(DEB_UPSTREAM_VERSION) DEB_MAKE_CHECK_TARGET = check # Let d-shlibs calculate development package dependencies # and handle shared library install # * d-shlibs 0.50 required for --multiarch and --exclude-la options binary-post-install/$(libpkg) binary-post-install/$(devpkg):: \ debian/stamp-local-shlibs-$(lib) debian/stamp-local-shlibs-$(lib): \ binary-install/$(libpkg) \ binary-install/$(devpkg) d-shlibmove --commit \ --devunversioned \ --exclude-la \ --multiarch \ --movedev "debian/tmp/usr/include/*" usr/include/ \ --movedev "debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/*" \ usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig \ debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/$(lib).so touch $@ clean:: rm -f debian/stamp-local-shlibs-$(lib)