File: rules

package info (click to toggle)
libdatrie 0.2.10-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,004 kB
  • ctags: 463
  • sloc: sh: 11,373; ansic: 3,701; makefile: 169
file content (50 lines) | stat: -rwxr-xr-x 1,181 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
44
45
46
47
48
49
50
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

SHARED_PKG := libdatrie1
SHLIB_VER := 0.2.0

%:
	dh $@ --with autoreconf

override_dh_auto_build-indep:
	$(MAKE) -C doc

override_dh_auto_build-arch:
	$(MAKE) -C datrie
	$(MAKE) -C tools
	$(MAKE) -C man

# No test for doc
override_dh_auto_test-indep:

ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
override_dh_auto_test-arch:
	$(MAKE) -C tests check
endif

override_dh_auto_install-indep:
	$(MAKE) -C doc install DESTDIR=$(CURDIR)/debian/tmp

override_dh_install-indep:
	dh_install -i -Xjquery.js

override_dh_auto_install-arch:
	$(MAKE) -C datrie install DESTDIR=$(CURDIR)/debian/tmp
	$(MAKE) -C tools  install DESTDIR=$(CURDIR)/debian/tmp
	$(MAKE) -C man    install DESTDIR=$(CURDIR)/debian/tmp
	$(MAKE) install-am DESTDIR=$(CURDIR)/debian/tmp

override_dh_installchangelogs-arch:
	dh_installchangelogs -Nlibdatrie-dev -a

override_dh_installdocs-arch:
	dh_installdocs -plibdatrie-dev --link-doc=libdatrie1
	dh_installdocs --remaining-packages -a

override_dh_makeshlibs:
	dh_makeshlibs -a -p$(SHARED_PKG) -V'$(SHARED_PKG) (>= $(SHLIB_VER))' \
		--add-udeb="libdatrie1-udeb"