File: rules

package info (click to toggle)
qlcplus 4.12.3-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 48,336 kB
  • sloc: cpp: 165,654; javascript: 4,661; ansic: 2,796; xml: 1,894; sh: 959; ruby: 607; python: 585; makefile: 24
file content (37 lines) | stat: -rwxr-xr-x 854 bytes parent folder | download
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
#!/usr/bin/make -f

export QT_SELECT = qt5

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# This is currently needed for the dmxusb plugin with libftdi >= 1.5
export DEB_CXXFLAGS_MAINT_APPEND = -Wno-error=deprecated-declarations

DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk

TESTS_HOME = $(CURDIR)/debian/tests.home

%:
	dh $@

override_dh_clean:
	dh_clean
	rm -rf "$(TESTS_HOME)"

override_dh_auto_configure:
	./translate.sh
	dh_auto_configure -- FORCECONFIG=release

override_dh_auto_install:
	dh_auto_install
	# remove symlinks of private libraries
	find debian/tmp -name '*.so' -type l -print -delete

override_dh_auto_test: export HOME="$(TESTS_HOME)"
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	mkdir -p "$(TESTS_HOME)"
	localehelper LANG=en_US.UTF-8 \
		xvfb-run -a dh_auto_test --no-parallel
endif