File: rules

package info (click to toggle)
openscap 1.2.16-2
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 130,144 kB
  • sloc: xml: 666,222; ansic: 102,512; sh: 18,915; makefile: 3,197; python: 1,418; perl: 443; cpp: 126
file content (41 lines) | stat: -rwxr-xr-x 1,116 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
# -*- makefile -*-

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

DEFAULTPY=$(shell pyversions -v -d)
PYVERSIONS=$(shell pyversions -v -r)
ALLPY=$(PYVERSIONS)

override_dh_auto_test:
	# disable tests until they work as expected
	:

override_dh_auto_configure: $(ALLPY:%=override_dh_auto_configure-%)

override_dh_auto_configure-%:
	dh_auto_configure -Bbuild-python-$* -- --enable-sce --enable-perl PYTHON=/usr/bin/python$*

override_dh_auto_build: $(ALLPY:%=override_dh_auto_build-%)

override_dh_auto_build-%:
	dh_auto_build -Bbuild-python-$*

override_dh_auto_install: $(ALLPY:%=override_dh_auto_install-%)
	find debian/tmp -name "*.la" -delete
	rm -f debian/libopenscap-dev/usr/share/doc/libopenscap-dev/html/jquery.js

override_dh_auto_install-%:
	dh_auto_install -Bbuild-python-$* --destdir=debian/tmp

override_dh_strip:
	dh_strip -plibopenscap8 --dbg-package=libopenscap8-dbg
	dh_strip -ppython-openscap --dbg-package=libopenscap8-dbg
	dh_strip -plibopenscap-perl --dbg-package=libopenscap8-dbg

override_dh_auto_clean:
	rm -rf build-*

%:
	dh $@ --with autoreconf,python2