home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / share / doc / festival / examples / Makefile < prev    next >
Encoding:
Makefile  |  2006-05-21  |  3.8 KB  |  74 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. BUILD_DIRS=
  36. ALL_DIRS=$(BUILD_DIRS) songs
  37.  
  38. EXTEXTS = intro.text spintro.text benchmark.text
  39. EXAMPLES = webdemo.scm ex1.email ex1.ogi example.sable example2.sable \
  40.            tobi.stml example.th example.apml
  41. SCRIPTS = saytime.sh text2pos.sh latest.sh \
  42.            scfg_parse_text.sh text2wave.sh make_utts.sh dumpfeats.sh \
  43.            durmeanstd.sh
  44. SHELL_SCRIPTS = benchmark festival_client.pl
  45. SCMS = toksearch.scm th-mode.scm addr-mode.scm
  46. SAMPLEC = festival_client.c festival_client.h
  47. OTHERS = apml.dtd
  48. FILES=Makefile $(EXAMPLES) $(EXTEXTS) $(SCRIPTS) $(SHELL_SCRIPTS) $(SCMS) $(SAMPLEC) $(OTHERS) speech_pm_1.0.tar
  49.  
  50. ALL = $(SCRIPTS:.sh=)
  51. LOCAL_CLEAN = $(SCRIPTS:.sh=)
  52.  
  53. include $(TOP)/config/common_make_rules
  54.  
  55. $(ALL) : % : %.sh
  56.     rm -f $@
  57.     @echo "#!/usr/bin/festival --script" >$@
  58. #    @echo "#!/bin/sh" >$@
  59. #    @echo "\"true\" ; exec "/usr/bin/festival --script '$$0 $$*' >>$@
  60.     cat $< >>$@
  61.     chmod +x $@
  62.  
  63. festival_client: festival_client.o festival_client.h
  64.     $(LINK_COMMAND) -o festival_client festival_client.o $(LIBS)
  65.  
  66. festival_client.o: festival_client.c festival_client.h
  67.     $(CC_COMMAND) -DSTANDALONE festival_client.c -o festival_client.o
  68.  
  69. # Do this manually to make sure Festival.tar (perl module) is up to date.
  70.  
  71. speech_pm_1.0.tar: $(wildcard speech_pm_1.0/*) $(wildcard  speech_pm_1.0/*/*) $(wildcard  speech_pm_1.0/*/*/*)
  72.     -chmod +w speech_pm_1.0.tar
  73.     tar cvf speech_pm_1.0.tar `cat speech_pm_1.0/MANIFEST|sed -e 's/^/speech_pm_1.0\//'`
  74.