File: rules

package info (click to toggle)
librevenge 0.0.4-6
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 3,548 kB
  • ctags: 2,264
  • sloc: cpp: 13,022; sh: 4,534; makefile: 331; python: 291; ansic: 87
file content (30 lines) | stat: -rwxr-xr-x 1,086 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
#!/usr/bin/make -f

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

include /usr/share/dpkg/architecture.mk

%:
	dh $@ --parallel --with autoreconf

override_dh_auto_configure:
	dh_auto_configure -- --disable-werror \
		--disable-silent-rules --with-boost-libdir=/usr/lib/$(DEB_HOST_MULTIARCH)

override_dh_auto_install:
	dh_auto_install
	mkdir -p debian/.debhelper/librevenge-0.0-0/dbgsym-root/usr/share/gdb/auto-load//usr/lib/$(DEB_HOST_MULTIARCH)
	for i in ./data/gdb/auto-load/*.py; do \
		cp $$i debian/.debhelper/librevenge-0.0-0/dbgsym-root/usr/share/gdb/auto-load//usr/lib/$(DEB_HOST_MULTIARCH); \
	done
	# based on the pythondir set in the files above...
	mkdir -p debian/.debhelper/librevenge-0.0-0/dbgsym-root/usr/share/librevenge/python
	for i in ./data/gdb/librevenge/*; do \
		cp -r $$i debian/.debhelper/librevenge-0.0-0/dbgsym-root/usr/share/librevenge/python; \
	done

override_dh_gencontrol:
	dh_gencontrol
	perl -pi -e 's/^(Depends:.*)/\1\nRecommends: gdb, python3-six/' \
                debian/.debhelper/librevenge-0.0-0/dbgsym-root/DEBIAN/control