File: rules

package info (click to toggle)
open-jtalk 1.11-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 117,352 kB
  • sloc: cpp: 165,033; ansic: 16,087; sh: 4,173; makefile: 291
file content (31 lines) | stat: -rwxr-xr-x 996 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
#!/usr/bin/make -f
# -*- makefile -*-

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

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

%:
	dh $@ --no-parallel

override_dh_auto_build:
	dh_auto_build
	docbook-to-man $(CURDIR)/debian/open_jtalk.sgml > $(CURDIR)/debian/open_jtalk.1

override_dh_auto_configure:
	dh_auto_configure -- --with-charset=utf8 --with-hts-engine-header-path=/usr/include --with-hts-engine-library-path=/usr/lib/$(DEB_HOST_MULTIARCH)

override_dh_auto_clean:
	dh_auto_clean
	rm -rf $(CURDIR)/debian/open_jtalk.1 \
	       $(CURDIR)/mecab-naist-jdic/char.bin \
	       $(CURDIR)/mecab-naist-jdic/matrix.bin \
	       $(CURDIR)/mecab-naist-jdic/sys.dic \
	       $(CURDIR)/mecab-naist-jdic/unk.dic \
	       $(CURDIR)/mecab-naist-jdic/left-id.def \
	       $(CURDIR)/mecab-naist-jdic/pos-id.def \
	       $(CURDIR)/mecab-naist-jdic/rewrite.def \
	       $(CURDIR)/mecab-naist-jdic/right-id.def