1###########################################################################
2##                                                                       ##
3##                Centre for Speech Technology Research                  ##
4##                     University of Edinburgh, UK                       ##
5##                       Copyright (c) 1996,1997                         ##
6##                        All Rights Reserved.                           ##
7##                                                                       ##
8##  Permission is hereby granted, free of charge, to use and distribute  ##
9##  this software and its documentation without restriction, including   ##
10##  without limitation the rights to use, copy, modify, merge, publish,  ##
11##  distribute, sublicense, and/or sell copies of this work, and to      ##
12##  permit persons to whom this work is furnished to do so, subject to   ##
13##  the following conditions:                                            ##
14##   1. The code must retain the above copyright notice, this list of    ##
15##      conditions and the following disclaimer.                         ##
16##   2. Any modifications must be clearly marked as such.                ##
17##   3. Original authors' names are not deleted.                         ##
18##   4. The authors' names are not used to endorse or promote products   ##
19##      derived from this software without specific prior written        ##
20##      permission.                                                      ##
21##                                                                       ##
22##  THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK        ##
23##  DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING      ##
24##  ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT   ##
25##  SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE     ##
26##  FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES    ##
27##  WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN   ##
28##  AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,          ##
29##  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF       ##
30##  THIS SOFTWARE.                                                       ##
31##                                                                       ##
32###########################################################################
33TOP=..
34DIRNAME=examples
35BUILD_DIRS=
36ALL_DIRS=$(BUILD_DIRS) songs
37
38EXTEXTS = intro.text spintro.text benchmark.text
39EXAMPLES = webdemo.scm ex1.email ex1.ogi example.sable example2.sable \
40           tobi.stml example.th example.apml
41SCRIPTS = saytime.sh text2pos.sh latest.sh \
42           scfg_parse_text.sh text2wave.sh make_utts.sh dumpfeats.sh \
43           durmeanstd.sh powmeanstd.sh run-festival-script.sh text2utt.sh
44SHELL_SCRIPTS = benchmark festival_client.pl
45SCMS = toksearch.scm th-mode.scm addr-mode.scm
46SAMPLEC = festival_client.c festival_client.h
47OTHERS = apml.dtd
48FILES=Makefile $(EXAMPLES) $(EXTEXTS) $(SCRIPTS) $(SHELL_SCRIPTS) $(SCMS) $(SAMPLEC) $(OTHERS) speech_pm_1.0.tar
49
50ALL = $(SCRIPTS:.sh=)
51LOCAL_CLEAN = $(SCRIPTS:.sh=)
52
53include $(TOP)/config/common_make_rules
54
55$(ALL) : % : %.sh
56	rm -f $@
57	@echo "#!/bin/sh" >$@
58	@echo "\"true\" ; exec "$(FESTIVAL_HOME)/bin/festival --script '$$0 $$*' >>$@
59	cat $< >>$@
60	chmod +x $@
61
62festival_client: festival_client.o festival_client.h
63	$(LINK_COMMAND) -o festival_client festival_client.o $(LIBS)
64
65festival_client.o: festival_client.c festival_client.h
66	$(CC_COMMAND) -DSTANDALONE festival_client.c -o festival_client.o
67
68# Do this manually to make sure Festival.tar (perl module) is up to date.
69
70speech_pm_1.0.tar: $(wildcard speech_pm_1.0/*) $(wildcard  speech_pm_1.0/*/*) $(wildcard  speech_pm_1.0/*/*/*)
71	-chmod +w speech_pm_1.0.tar
72	tar cvf speech_pm_1.0.tar `cat speech_pm_1.0/MANIFEST|sed -e 's/^/speech_pm_1.0\//'`
73