File: rules

package info (click to toggle)
lmdb 0.9.22-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 752 kB
  • sloc: ansic: 9,802; makefile: 112
file content (44 lines) | stat: -rwxr-xr-x 1,249 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

# enable dpkg build flags
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk

export XCFLAGS := $(shell dpkg-buildflags --get CFLAGS)

MANPAGES=compat.3 debug.3 errors.3 idls.3 internal.3 lmdb.h.3 mt_dbflag.3 readers.3 todo.3 Version.3

%:
	dh $@ -Dlibraries/liblmdb/

override_dh_auto_clean:
	dh_auto_clean -Dlibraries/liblmdb/
	rm -rf html man

override_dh_auto_build:
	dh_auto_build -Dlibraries/liblmdb/
	cd libraries/liblmdb && doxygen
	cd libraries/liblmdb && \
	for m in $(MANPAGES); do \
	  mv man/man3/$$m man/man3/mdb_$$m; \
	done

override_dh_strip:
	dh_strip --dbgsym-migration='lmdb-dbg (<< 0.9.18-3~)' || dh_strip

override_dh_install-arch:
	dh_install -X.la
	mkdir debian/liblmdb-dev/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/
	sed -e 's,@prefix@,/usr,' \
	    -e 's,@exec_prefix@,$${prefix},' \
	    -e 's,@libdir@,$${prefix}/lib/$(DEB_HOST_MULTIARCH),' \
	    -e 's,@includedir@,$${prefix}/include,' \
	    -e 's,@PACKAGE_VERSION@,$(DEB_VERSION_UPSTREAM),' \
	  < debian/lmdb.pc.in \
	  > debian/liblmdb-dev/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/lmdb.pc

override_dh_auto_test:
ifneq ($(DEB_HOST_ARCH),hurd-i386)
	dh_auto_test -Dlibraries/liblmdb/
endif