File: rules

package info (click to toggle)
libpinyin 1.0.0%2Brepack2-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 86,276 kB
  • ctags: 1,344
  • sloc: cpp: 16,742; python: 1,549; makefile: 266; ansic: 93; sh: 20
file content (20 lines) | stat: -rwxr-xr-x 596 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f
DEB_HOST_MULTIARCH?=$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
LDFLAGS+=-Wl,--as-needed

# Parallel build.
ifeq ($(DEB_HOST_ARCH_OS),linux)
    export DEB_BUILD_OPTIONS+=parallel=$(shell getconf _NPROCESSORS_ONLN)
endif

%:
	dh $@ --parallel --with autoreconf
override_dh_auto_configure:
	dh_auto_configure -Sautoconf -- \
	    --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) \
	    --datarootdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH)
override_dh_strip:
	dh_strip --dbg-package=libpinyin-dbg
override_dh_install:
	find debian/ -name *.la -delete
	dh_install --fail-missing