File: rules

package info (click to toggle)
librepo 1.14.5-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,084 kB
  • sloc: ansic: 17,669; python: 3,748; xml: 581; sh: 113; makefile: 58
file content (41 lines) | stat: -rwxr-xr-x 1,149 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
38
39
40
41
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
# export DH_VERBOSE = 1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk

%:
	dh "${@}" --buildsystem=cmake --with=python3

override_dh_auto_configure:
	dh_auto_configure --builddirectory=build -- \
		-DENABLE_DOCS:BOOL=ON -DENABLE_TESTS:BOOL=ON -DWITH_ZCHUNK:BOOL=OFF

override_dh_auto_build:
	dh_auto_build --builddirectory=build -- all doc

override_dh_auto_install:
	dh_auto_install --builddirectory=build

	# Use system-provides files.
	rm -fv 'build/doc/python/_static/jquery.js' \
	       'build/doc/python/_static/underscore.js' \
	       'build/doc/c/html/jquery.js' \
	       'build/doc/python/_static/doctools.js' \
	       'build/doc/python/_static/language_data.js' \
	       'build/doc/python/_static/searchtools.js'

override_dh_auto_clean:
	rm -rfv 'librepo/version.h'
	rm -rfv 'doc/c/Doxyfile.in'
	dh_auto_clean --builddirectory=build

override_dh_auto_test:
	dh_auto_test --builddirectory=build

override_dh_missing:
	dh_missing --fail-missing