File: rules

package info (click to toggle)
libevt 20170120-1%2Bdeb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 15,808 kB
  • sloc: ansic: 254,947; sh: 5,662; makefile: 1,631; python: 311; sed: 16
file content (100 lines) | stat: -rwxr-xr-x 2,680 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#!/usr/bin/make -f
# debian/rules that uses debhelper >= 7.

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

# This has to be exported to make some magic below work.
export DH_OPTIONS

%:
	dh  $@

.PHONY: override_dh_auto_configure
override_dh_auto_configure:
	dh_auto_configure -- --enable-python2 --enable-python3 CFLAGS="-g"

.PHONY: override_dh_auto_test
override_dh_auto_test:

.PHONY: override_dh_install
override_dh_install:
	# Create the libevt package.
	dh_install "debian/tmp/usr/lib/lib*.so.*.*.*" -p libevt
	# Create the libevt-dev package.
	dh_install "debian/tmp/usr/include/*.h" -p libevt-dev
	dh_install "debian/tmp/usr/include/lib*/*.h" -p libevt-dev
	dh_install "debian/tmp/usr/lib/*.a" -p libevt-dev
	dh_install "debian/tmp/usr/lib/*.la" -p libevt-dev
	dh_install "debian/tmp/usr/lib/*.so" -p libevt-dev
	dh_install "debian/tmp/usr/lib/pkgconfig/*" -p libevt-dev
	dh_install "debian/tmp/usr/share/man/man3/*" -p libevt-dev
	# Create the libevt-tools package.
	dh_install "debian/tmp/usr/bin/*" -p libevt-tools
	dh_install "debian/tmp/usr/share/man/man1/*" -p libevt-tools
	# Create the libevt-python package.
	dh_install -X"*_d.so" "debian/tmp/usr/lib/python2*/*" -p libevt-python
	# Create the libevt-python3 package.
	dh_install -X"*_d.so" "debian/tmp/usr/lib/python3*/*" -p libevt-python3
	# The libevt-dbg, libevt-python-dbg and libevt-python3-dbg packages
	# are created by dh_strip.
	dh_install

.PHONY: override_dh_installmenu
override_dh_installmenu:

.PHONY: override_dh_installmime
override_dh_installmime:

.PHONY: override_dh_installmodules
override_dh_installmodules:

.PHONY: override_dh_installlogcheck
override_dh_installlogcheck:

.PHONY: override_dh_installlogrotate
override_dh_installlogrotate:

.PHONY: override_dh_installpam
override_dh_installpam:

.PHONY: override_dh_installppp
override_dh_installppp:

.PHONY: override_dh_installudev
override_dh_installudev:

.PHONY: override_dh_installwm
override_dh_installwm:

.PHONY: override_dh_installxfonts
override_dh_installxfonts:

.PHONY: override_dh_gconf
override_dh_gconf:

.PHONY: override_dh_icons
override_dh_icons:

.PHONY: override_dh_perl
override_dh_perl:

.PHONY: override_dh_pysupport
override_dh_pysupport:

.PHONY: override_dh_strip
override_dh_strip:
ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS)))
	dh_strip -plibevt --dbg-package=libevt-dbg
	dh_strip -plibevt-python --dbg-package=libevt-python-dbg
	dh_strip -plibevt-python3 --dbg-package=libevt-python3-dbg
endif

.PHONY: override_dh_shlibdeps
override_dh_shlibdeps:
	dh_shlibdeps -Llibevt -l${CURDIR}/debian/tmp/usr/lib

.PHONY: override_dh_makeshlibs
override_dh_makeshlibs:
	dh_makeshlibs -Xlibevt-dev