[go: up one dir, main page]

File: rules

package info (click to toggle)
libmongo-client 0.1.8-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,384 kB
  • ctags: 770
  • sloc: ansic: 14,979; makefile: 322; perl: 137; sh: 48
file content (60 lines) | stat: -rwxr-xr-x 1,498 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/usr/bin/make -f
# -*- makefile -*-

export DH_OPTIONS += -O-Bbuild-tree --dbg-package=libmongo-client0-dbg

UPSTREAM_VERSION=$(shell dpkg-parsechangelog | sed -n '/\(Version:\)/{s/^Version:[[:space:]]\+\([0-9]\+:\)\?\(.*\)/\2/p}' | rev | cut -d- -f 2- | rev)

# Disable the build target, because we don't want to build arch-indep
# stuff by default. There's always build-arch and build-indep, and the
# binary-* targets depend on the right build-* target anyway.

build: ;
.PHONY: build

##
# Arch dependent overrides
##
override_dh_autoreconf-arch:
	dh_autoreconf

override_dh_auto_configure-arch:
	dh_auto_configure -- --enable-shared

override_dh_auto_build-arch:
	dh_auto_build -- V=1

override_dh_auto_test-arch:
	dh_auto_test -- V=1

##
# Arch independent overrides
##
override_dh_autoreconf-indep override_dh_auto_configure-indep: ;
override_dh_auto_test-indep override_dh_auto_install-indep: ;
override_dh_auto_build-indep:
	install -d build-tree/docs/html
	cd build-tree && sed -e "s,@VERSION@,${UPSTREAM_VERSION},g" \
			     -e "s,@top_srcdir@,../,g" \
		<../Doxyfile.in >Doxyfile
	cd build-tree && doxygen

##
# Overrides common to both
##
override_dh_installdocs:
	dh_installdocs --link-doc=libmongo-client0

override_dh_compress:
	dh_compress -Xusr/share/doc/libmongo-client0/examples/ \
		    -Xusr/share/doc/libmongo-client0/html/

override_dh_builddeb:
ifneq (Ubuntu,$(shell dpkg-vendor --query Vendor))
	dh_builddeb -- -Zxz
else
	dh_builddeb
endif

%:
	dh $@ --with autoreconf