File: rules

package info (click to toggle)
gatb-core 1.4.1%2Bgit20181225.44d5a44%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 17,804 kB
  • sloc: cpp: 48,999; sh: 2,169; xml: 1,333; makefile: 35; python: 32
file content (32 lines) | stat: -rwxr-xr-x 936 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
#!/usr/bin/make -f
#export DH_VERBOSE = 1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

include /usr/share/dpkg/default.mk
pkgtestdata=$(DEB_SOURCE)-testdata

%:
	dh $@ --sourcedirectory=gatb-core

override_dh_auto_build-arch:
	dh_auto_build -a

override_dh_auto_build-indep:
	echo "Save time of autobuilders and do nothing ... unfortunately this does not seem to work"

override_dh_install-arch:
	d-shlibmove --commit \
		    --multiarch \
		    --devunversioned \
		    --exclude-la \
                    --movedev debian/tmp/usr/include usr \
                    --movedev gatb-core/cmake usr/lib \
                    debian/tmp/usr/lib/*/*.so
	mkdir -p debian/$(DEB_SOURCE)/usr/lib/$(DEB_SOURCE)
	dh_install -a

override_dh_install-indep:
	dh_install -i
	mkdir -p debian/$(DEB_SOURCE)/usr/lib/$(DEB_SOURCE)
	mv debian/$(pkgtestdata)/usr/share/doc/$(DEB_SOURCE)/test/gatb-core-cppunit debian/$(DEB_SOURCE)/usr/lib/$(DEB_SOURCE)