File: rules

package info (click to toggle)
u1db-qt 0.1.7-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 700 kB
  • sloc: cpp: 2,089; python: 60; sql: 40; makefile: 19; sh: 14; xml: 14
file content (34 lines) | stat: -rwxr-xr-x 842 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
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_missing:
	dh_missing --fail-missing

override_dh_auto_configure:
	dh_auto_configure -- -DBUILD_DOCS=ON

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	sh tests/xvfb.sh dh_auto_test || exit $?
endif

override_dh_install:
	# move doc files
	mkdir -p debian/tmp/usr/share/doc/libu1db-qt5-dev/
	mv debian/tmp/usr/share/u1db-qt/doc/html debian/tmp/usr/share/doc/libu1db-qt5-dev/
	rmdir debian/tmp/usr/share/u1db-qt/doc/
	# remove empty images/ dir
	rmdir debian/tmp/usr/share/doc/libu1db-qt5-dev/html/images/
	# run dh_install, finally
	dh_install

get-orig-source:
	uscan --noconf --force-download --rename --download-current-version --destdir=..