1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
#!/usr/bin/make -f
# -*- makefile -*-
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
include /usr/share/dpkg/architecture.mk
%:
dh $@
override_dh_auto_configure:
dh_auto_configure --builddirectory=build-qt5 --buildsystem=qmake \
-- LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH) \
QT_MAJOR_VERSION=5 \
"QMAKE_CXXFLAGS=$(CFLAGS)" \
../accounts-qml-module.pro
dh_auto_configure --builddirectory=build-qt6 --buildsystem=qmake6 \
-- LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH) \
QT_MAJOR_VERSION=6 \
"QMAKE_CXXFLAGS=$(CFLAGS)" \
../accounts-qml-module.pro
override_dh_auto_build:
dh_auto_build --builddirectory=build-qt5 --buildsystem=qmake
dh_auto_build --builddirectory=build-qt6 --buildsystem=qmake6
override_dh_auto_install:
dh_auto_install --builddirectory=build-qt5
dh_auto_install --builddirectory=build-qt6
override_dh_install:
-rmdir debian/tmp/usr/share/doc/accounts-qml-module/html/images/
dh_install -X .gitignore
override_dh_clean:
dh_clean
# remove build-cruft stemming from make docs-html call during dh_auto_build override
rm -rf doc/html/*
override_dh_auto_test:
dh_auto_test --builddirectory=build-qt5
dh_auto_test --builddirectory=build-qt6
override_dh_auto_clean:
dh_auto_clean --builddirectory=build-qt5
dh_auto_clean --builddirectory=build-qt6
get-orig-source:
uscan --noconf --force-download --rename --download-current-version --destdir=..
|