File: rules

package info (click to toggle)
kyotocabinet 1.2.79-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 8,444 kB
  • sloc: cpp: 59,354; ansic: 1,478; makefile: 1,204; ruby: 523; sh: 190; awk: 91; perl: 61
file content (33 lines) | stat: -rwxr-xr-x 860 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
#!/usr/bin/make -f

include /usr/share/dpkg/default.mk
include /usr/share/dpkg/architecture.mk

ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CONFIG_OPTS += --disable-opt
endif

override_dh_auto_configure:
	dh_auto_configure -- \
	        --enable-zlib \
	        --enable-lzo \
	        --enable-lzma \
	        --prefix=/usr \
	        $(CONFIG_OPTS)

override_dh_auto_install:
	$(MAKE) DESTDIR=$$(pwd)/debian/tmp prefix=/usr install

override_dh_installdocs-arch:
	# does not apply to kyotocabinet-doc
	dh_installdocs --arch --link-doc=libkyotocabinet16v5

execute_after_dh_installdocs-indep:
	# mega-lameness, seem to not be necessary on buildds, but with cowbuilder/pbuilder?
	rm -rf $$(pwd)/debian/kyotocabinet-doc/usr/share/doc/libkyotocabinet16v5

override_dh_strip:
	dh_strip --dbgsym-migration='libkyotocabinet16v5-dbg (<< 1.2.76-5~)'

%:
	dh $@