#!/usr/bin/make -f # -*- makefile -*- include /usr/share/dpkg/default.mk # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 export DPKG_GENSYMBOLS_CHECK_LEVEL=4 export NO_PNG_PKG_MANGLE=1 # Explicitly selecting a G{CC,++}-version here to avoid accidental # ABI breaks introduced by toolchain updates. export CC=$(DEB_HOST_GNU_TYPE)-gcc-4.9 export CXX=$(DEB_HOST_GNU_TYPE)-g++-4.9 %: dh $@ --parallel --fail-missing --with python2,python3 override_dh_auto_clean: dh_auto_clean rm -rf builddir override_dh_auto_configure: # Debian defines CMAKE_INSTALL_LOCALSTATEDIR as /usr/var, which is wrong. # So until Debian bug 719148 is fixed, do it ourselves. dh_auto_configure -- -DCMAKE_INSTALL_LOCALSTATEDIR="/var" override_dh_auto_build: # doc is not a default target dh_auto_build -- all doc override_dh_install: # install autopilot tests cd tests/autopilot; \ set -ex; for python in $(shell pyversions -r) $(shell py3versions -r); do \ $$python setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb; \ done; \ cd $(CURDIR) dh_install -X'*.pyc' --fail-missing # use private lib directories override_dh_makeshlibs: dh_makeshlibs -Nunity8-private -Nunity8-fake-env # libMockLightDM-qml.so links against liblightdm-qt5-2.so which doesn't exist override_dh_shlibdeps: dh_shlibdeps -XlibMockLightDM-qml.so