File: rules

package info (click to toggle)
libthai 0.1.26-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,080 kB
  • ctags: 888
  • sloc: ansic: 4,405; sh: 4,270; makefile: 279
file content (52 lines) | stat: -rwxr-xr-x 1,236 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
51
52
#!/usr/bin/make -f
# -*- makefile -*-

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

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

SHARED_PKG := libthai0
SHLIB_VER := 0.1.12

%:
	dh $@ --with autoreconf

override_dh_auto_build-indep:
	$(MAKE) -C data
	$(MAKE) -C doc

override_dh_auto_build-arch:
	$(MAKE) -C src

# No test for data, doc
override_dh_auto_test-indep:

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

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

override_dh_auto_install-arch:
	$(MAKE) -C include install DESTDIR=$(CURDIR)/debian/tmp
	$(MAKE) -C src     install DESTDIR=$(CURDIR)/debian/tmp
	$(MAKE) install-am DESTDIR=$(CURDIR)/debian/tmp

override_dh_install-indep:
	dh_install -i -Xjquery.js

override_dh_installchangelogs-arch:
	dh_installchangelogs -Nlibthai-dev -s ChangeLog

override_dh_installdocs-arch:
	dh_installdocs -plibthai-dev --link-doc=libthai0
	dh_installdocs --remaining-packages -s

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