#!/usr/bin/make -f # output every command that modifies files on the build system. DH_VERBOSE = 1 LOGLEVEL = info ifeq ($(DH_VERBOSE),1) LOGLEVEL = debug endif ifneq (,$(filter terse,$(DEB_BUILD_OPTIONS))) LOGLEVEL = warning endif DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/default.mk include /usr/share/dpkg/architecture.mk #confgure qt5 generally, not just for configure export QT_SELECT=5 LIBNAME=asyncfuture VERSION=$(shell dpkg-parsechangelog -S version | awk '{split($$0,a,"-"); print a[1]}') %: dh $@ # Note that the dpkg-buildflags settings are currently static. We await a # mechanism to convert them dynamically into Qbs-speak override_dh_auto_configure: qbs-setup-toolchains --settings-dir debian --detect qbs-setup-qt --settings-dir debian /usr/bin/qmake deb qbs config --settings-dir debian profiles.deb.qbs.installPrefix "usr/" override_dh_auto_build: qbs build --settings-dir debian --log-level $(LOGLEVEL) --command-echo-mode command-line --no-install \ profile:deb \ modules.qbs.installRoot:$(CURDIR)/debian/tmp \ config:qbs-build override_dh_auto_install: qbs install --settings-dir debian --no-build --log-level $(LOGLEVEL)\ --install-root $(CURDIR)/debian/tmp \ profile:deb \ config:qbs-build dh_install override_dh_clean: # tidy up qbs profile builddirs - rm -r qbs-build - rm -r debian/qbs dh_clean