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###########################################################################
33#                                                                         #
34#  Makefile for lib directory                                             #
35#                                                                         #
36###########################################################################
37TOP=..
38DIRNAME=lib
39BUILD_DIRS=etc multisyn
40ALL_DIRS=$(BUILD_DIRS)
41
42PHONESETS = mrpa_phones.scm mrpa_allophones.scm radio_phones.scm \
43            holmes_phones.scm darpa_phones.scm phoneset.scm \
44            cmusphinx2_phones.scm unilex_phones.scm
45DURSTATS = mrpa_durs.scm klatt_durs.scm gswdurtreeZ.scm f2bdurtreeZ.scm
46INTSTATS = tobi.scm f2bf0lr.scm tobi_rules.scm \
47           tilt.scm apml.scm apml_f2bf0lr.scm apml_kaldurtreeZ.scm
48DBS =
49LTSRULES = engmorph.scm engmorphsyn.scm lts.scm lts_build.scm
50BRKMODELS = sec.ts20.quad.ngrambin sec.B.hept.ngrambin
51MODES = email-mode.scm ogimarkup-mode.scm sable-mode.scm soleml-mode.scm \
52        singing-mode.scm
53GENERAL =  init.scm synthesis.scm module_description.scm \
54          lexicons.scm \
55	  festival.scm intonation.scm duration.scm pos.scm phrase.scm \
56          voices.scm tts.scm festdoc.scm languages.scm token.scm \
57          mbrola.scm display.scm postlex.scm tokenpos.scm \
58          festtest.scm cslush.scm cart_aux.scm pauses.scm \
59          scfg.scm mettree.scm java.scm clunits.scm clunits_build.scm \
60          siteinit.scm
61HTS = hts.scm
62OTHERS = Sable.v0_2.dtd sable-latin.ent festival.el scfg_wsj_wp20.gram \
63	speech.properties Singing.v0_1.dtd
64
65SIOD =  siod.scm web.scm cstr.scm fringe.scm
66
67FILES=Makefile VCLocalRules $(PHONESETS) $(DURSTATS) $(INTSTATS) $(DBS) \
68      $(BRKMODELS) $(GENERAL) $(LTSRULES) $(OTHERS) $(MODES) $(HTS)
69
70LOCAL_CLEAN=$(SIOD)
71
72ALL=.copy_from_est .sub_directories
73
74include $(TOP)/config/common_make_rules
75
76.copy_from_est: $(SIOD)
77	@:
78
79$(SIOD) : % : $(EST)/lib/siod/%
80	@echo 'Copy $* from EST/lib/siod'
81	@$(RM) -f $*
82	@{ \
83	echo '' ;\
84	echo '' ;\
85	echo '' ;\
86	echo '' ;\
87	echo ' ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;' ;\
88	echo ' ;;; DO NOT EDIT THIS FILE ON PAIN OF MORE PAIN.' ;\
89	echo ' ;;; ' ;\
90	echo ' ;;; The master copy of this file is in $(EST)/lib/siod/$*' ;\
91	echo ' ;;; and is copied here at build time.' ;\
92	echo ' ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;' ;\
93	echo '' ;\
94	echo '' ;\
95	echo '' ;\
96	echo '' ;\
97	echo '' ;\
98	echo '' ;\
99	echo '' ;\
100	echo '' ;\
101	echo '' ;\
102	echo '' ;\
103	echo '' ;\
104	echo '' ;\
105	} | cat - $(EST)/lib/siod/$* |sed -e '/mode: *scheme/s//mode: view/' > $*
106	@chmod a-w $*
107
108