File: rules

package info (click to toggle)
qlcplus 4.12.6-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 51,212 kB
  • sloc: cpp: 171,475; javascript: 7,157; ansic: 2,796; xml: 2,042; sh: 1,024; python: 619; ruby: 606; makefile: 23
file content (34 lines) | stat: -rwxr-xr-x 714 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
#!/usr/bin/make -f

export QT_SELECT = qt5

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

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