Makefile 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. ###########################################################################
  2. ## ##
  3. ## Language Technologies Institute ##
  4. ## Carnegie Mellon University ##
  5. ## Copyright (c) 1999-2014 ##
  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. ## CARNEGIE MELLON UNIVERSITY 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 CARNEGIE MELLON UNIVERSITY 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. ## Fast efficient small run-time speech synthesis system ##
  35. ## http://cmuflite.org ##
  36. ## ##
  37. ## Authors: Alan W Black (awb@cs.cmu.edu) ##
  38. ## Kevin A. Lenzo (lenzo@cs.cmu.edu) ##
  39. ## and others see ACKNOWLEDGEMENTS ##
  40. ## Date: December 2014 ##
  41. ## Version: 2.0.0 release ##
  42. ## ##
  43. ###########################################################################
  44. TOP=.
  45. DIRNAME=
  46. BUILD_DIRS = include src lang doc
  47. ALL_DIRS=config $(BUILD_DIRS) testsuite \
  48. wince windows android \
  49. tools main
  50. CONFIG=configure configure.in config.sub config.guess \
  51. missing install-sh mkinstalldirs
  52. WINDOWS = Exports.def flite.sln fliteDll.vcproj
  53. FILES = Makefile README ACKNOWLEDGEMENTS COPYING $(CONFIG) $(WINDOWS)
  54. DIST_CLEAN = .time-stamp $(TOP)/build/ \
  55. config.cache config.log config.status \
  56. config/config config/system.mak FileList
  57. HOST_ONLY_DIRS = tools main
  58. ALL = $(BUILD_DIRS)
  59. config_dummy := $(shell test -f config/config || ( echo '*** '; echo '*** Making default config file ***'; echo '*** '; ./configure; ) >&2)
  60. include $(TOP)/config/common_make_rules
  61. ifeq ($(TARGET_OS),wince)
  62. BUILD_DIRS += wince
  63. endif
  64. config/config: config/config.in config.status
  65. ./config.status
  66. configure: configure.in
  67. autoconf
  68. backup: time-stamp
  69. @ $(RM) -f $(TOP)/FileList
  70. @ $(MAKE) file-list
  71. @ echo .time-stamp >>FileList
  72. @ ln -s . $(PROJECT_PREFIX)-$(PROJECT_VERSION)-$(PROJECT_STATE)
  73. @ sed 's/^\.\///' <FileList | sed 's/^/'$(PROJECT_PREFIX)-$(PROJECT_VERSION)-$(PROJECT_STATE)'\//' >.file-list-all
  74. @ tar jcvf $(PROJECT_PREFIX)-$(PROJECT_VERSION)-$(PROJECT_STATE).tar.bz2 `cat $(PROJECT_PREFIX)-$(PROJECT_VERSION)-$(PROJECT_STATE)/.file-list-all`
  75. @ $(RM) -f $(TOP)/.file-list-all
  76. @ $(RM) $(PROJECT_PREFIX)-$(PROJECT_VERSION)-$(PROJECT_STATE)
  77. @ ls -l $(PROJECT_PREFIX)-$(PROJECT_VERSION)-$(PROJECT_STATE).tar.bz2
  78. backupbz2: time-stamp
  79. @ $(RM) -f $(TOP)/FileList
  80. @ $(MAKE) file-list
  81. @ echo .time-stamp >>FileList
  82. @ ln -s . $(PROJECT_PREFIX)-$(PROJECT_VERSION)-$(PROJECT_STATE)
  83. @ sed 's/^\.\///' <FileList | sed 's/^/'$(PROJECT_PREFIX)-$(PROJECT_VERSION)-$(PROJECT_STATE)'\//' | grep -v cmu_us_kal | grep -v cmu_us_awb | grep -v cmu_us_rms | grep -v cmu_us_slt | grep -v cmu_time_awb >.file-list-all
  84. @ tar jcvf $(PROJECT_PREFIX)-$(PROJECT_VERSION)-$(PROJECT_STATE).tar.bz2 `cat $(PROJECT_PREFIX)-$(PROJECT_VERSION)-$(PROJECT_STATE)/.file-list-all`
  85. @ $(RM) -f $(TOP)/.file-list-all
  86. @ $(RM) $(PROJECT_PREFIX)-$(PROJECT_VERSION)-$(PROJECT_STATE)
  87. @ ls -l $(PROJECT_PREFIX)-$(PROJECT_VERSION)-$(PROJECT_STATE).tar.bz2
  88. tags:
  89. @ $(RM) -f $(TOP)/FileList
  90. @ $(MAKE) file-list
  91. etags `cat FileList | grep "\.[ch]$$"`
  92. install:
  93. @echo Installing
  94. mkdir -p $(DESTDIR)$(INSTALLBINDIR)
  95. mkdir -p $(DESTDIR)$(INSTALLLIBDIR)
  96. mkdir -p $(DESTDIR)$(INSTALLINCDIR)
  97. $(INSTALL) -m 644 include/*.h $(DESTDIR)$(INSTALLINCDIR)
  98. @ $(MAKE) -C main --no-print-directory DESTDIR=$(DESTDIR) install
  99. time-stamp :
  100. @ echo $(PROJECT_NAME) >.time-stamp
  101. @ echo $(PROJECT_PREFIX) >>.time-stamp
  102. @ echo $(PROJECT_VERSION) >>.time-stamp
  103. @ echo $(PROJECT_DATE) >>.time-stamp
  104. @ echo $(PROJECT_STATE) >>.time-stamp
  105. @ echo $(LOGNAME) >>.time-stamp
  106. @ hostname >>.time-stamp
  107. @ date >>.time-stamp
  108. # Convinience command, to generate cg dumped voices
  109. voices: ./bin/flite_cmu_us_awb ./bin/flite_cmu_us_rms ./bin/flite_cmu_us_rms
  110. mkdir -p voices
  111. ./bin/flite_cmu_us_awb -voicedump voices/cmu_us_awb.flitevox
  112. ./bin/flite_cmu_us_rms -voicedump voices/cmu_us_rms.flitevox
  113. ./bin/flite_cmu_us_slt -voicedump voices/cmu_us_slt.flitevox
  114. test:
  115. @ $(MAKE) --no-print-directory -C testsuite test