File: rules

package info (click to toggle)
kyotocabinet 1.2.76-4.2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, stretch
  • size: 8,556 kB
  • ctags: 3,719
  • sloc: cpp: 59,347; ansic: 1,478; makefile: 1,207; ruby: 523; sh: 190; awk: 91; perl: 61
file content (40 lines) | stat: -rwxr-xr-x 944 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
#!/usr/bin/make -f

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:
	#kyotocabinet-doc doc's created in install file, so this doesn't apply there
	dh_installdocs --link-doc=libkyotocabinet16v5
	# 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 --package=libkyotocabinet16v5 --dbg-package=libkyotocabinet16v5-dbg
	dh_strip

override_dh_installchangelogs:
	dh_installchangelogs ChangeLog

override_dh_builddeb:
	dh_builddeb -- -Zxz -z2

override_dh_makeshlibs:
	dh_makeshlibs -V

%:
	dh $@