File: rules

package info (click to toggle)
gatb-core 1.4.2+dfsg-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 17,904 kB
  • sloc: cpp: 49,087; sh: 2,176; xml: 1,333; makefile: 41; python: 32
file content (43 lines) | stat: -rwxr-xr-x 1,109 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
#!/usr/bin/make -f
#export DH_VERBOSE = 1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

ifneq (,$(filter $(DEB_HOST_ARCH),armel mipsel powerpc sh4))
  EXTRA=-DCMAKE_CXX_STANDARD_LIBRARIES=-latomic
endif


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

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

override_dh_auto_configure:
	dh_auto_configure -- $(EXTRA)

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_auto_install-indep:
	echo "Nothing to do here"

override_dh_missing:
	# test data are installed manually from main source to enable Architecture all builds
	rm -rf debian/tmp/usr/test/db
	dh_missing