home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: Multimed / Multimed.zip / fest-141.zip / festival / examples / Makefile < prev    next >
Makefile  |  1999-11-18  |  4KB  |  69 lines

  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. TOP=..
  34. DIRNAME=examples
  35.  
  36. EXTEXTS = intro.text spintro.text benchmark.text
  37. EXAMPLES = webdemo.scm ex1.email ex1.ogi example.sable example2.sable \
  38.            tobi.stml example.th
  39. SCRIPTS = saytime.sh text2pos.sh latest.sh \
  40.            scfg_parse_text.sh text2wave.sh make_utts.sh dumpfeats.sh \
  41.            durmeanstd.sh
  42. SHELL_SCRIPTS = benchmark festival_client.pl
  43. SCMS = toksearch.scm th-mode.scm addr-mode.scm
  44. SAMPLEC = festival_client.c festival_client.h
  45. FILES=Makefile $(EXAMPLES) $(EXTEXTS) $(SCRIPTS) $(SHELL_SCRIPTS) $(SCMS) $(SAMPLEC) speech_pm_1.0.tar
  46.  
  47. ALL = $(SCRIPTS:.sh=)
  48. LOCAL_CLEAN = $(SCRIPTS:.sh=)
  49.  
  50. include $(TOP)/config/common_make_rules
  51.  
  52. $(ALL) : % : %.sh
  53.     rm -f $@
  54.     echo "#!"$(FESTIVAL_HOME)/bin/festival --script >$@
  55.     cat $< >>$@
  56.     chmod +x $@
  57.  
  58. festival_client: festival_client.o festival_client.h
  59.     $(LINK_COMMAND) -o festival_client festival_client.o $(LIBS)
  60.  
  61. festival_client.o: festival_client.c festival_client.h
  62.     $(CC_COMMAND) -DSTANDALONE festival_client.c -o festival_client.o
  63.  
  64. # Do this manually to make sure Festival.tar (perl module) is up to date.
  65.  
  66. speech_pm_1.0.tar: $(wildcard speech_pm_1.0/*) $(wildcard  speech_pm_1.0/*/*) $(wildcard  speech_pm_1.0/*/*/*)
  67.     -chmod +w speech_pm_1.0.tar
  68.     tar cvf speech_pm_1.0.tar `cat speech_pm_1.0/MANIFEST|sed -e 's/^/speech_pm_1.0\//'`
  69.