File: rules

package info (click to toggle)
festival 1%3A2.0.95~beta-5.1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 5,448 kB
  • ctags: 4,437
  • sloc: cpp: 26,214; lisp: 14,961; ansic: 5,076; sh: 4,989; java: 1,536; makefile: 790; xml: 291; perl: 87
file content (74 lines) | stat: -rwxr-xr-x 1,918 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#!/usr/bin/make -f

FT := $(shell pwd)/debian/festival
FDT := $(shell pwd)/debian/festival-dev

#export DH_VERBOSE=1
export QUILT_PATCHES=./debian/patches

include /usr/share/quilt/quilt.make

build: build-stamp
build-stamp: patch
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
	cp -f /usr/share/misc/config.sub config.sub
endif
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
	cp -f /usr/share/misc/config.guess config.guess
endif
	$(MAKE)
	cd doc && $(MAKE) festival.info
	touch $@

clean: unpatch
	$(RM) config/config
	quilt push config_config.diff
	dh_testdir
	dh_testroot
	dh_clean
	[ ! -f Makefile ] || $(MAKE) clean
	quilt pop -a
	rm -f build-stamp

	find . -name make.depend -print0 | xargs -0r $(RM)
	find . -name make.include -print0 | xargs -0r $(RM)
	find bin/ \( -name SCCS -o -name RCS -o -name CVS \) -prune \
	     -o -type f ! -name Makefile -print0 | xargs -0r $(RM)
	rm -rf doc/*.1 doc/festfeat.texi doc/festvars.texi doc/festfunc.texi \
	       doc/info .pc
	rm -f config/modincludes.inc config/system.mak
	rm -f bin/festival*

	#we are removing config.* since, they are unused in Debian
	$(RM) config.sub config.guess config.log config.status config.cache

install: build
	dh_testdir
	dh_testroot
	dh_prep
	dh_installdirs

binary-indep: build install

binary-arch: build install
	dh_testdir
	dh_testroot
	dh_installchangelogs -a -k NEWS
	dh_installdocs -a README ACKNOWLEDGMENTS
	dh_install
	dh_installcatalogs -a
	dh_installman -pfestival doc/festival.1 doc/festival_client.1 doc/text2wave.1
	dh_installinfo -pfestival doc/info/festival.info*
	dh_installexamples -pfestival examples/* -Xexamples/text2wave debian/festival.init debian/festival.scm
	dh_strip -a
	dh_link -a
	dh_compress -a
	dh_fixperms -a
	dh_installdeb -a
	dh_shlibdeps -a
	dh_gencontrol -a -u-isp
	dh_md5sums -a
	dh_builddeb -a

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install