Debian Codegraph @

Makefile

raw
1 ###########################################################################
2 ## ##
3 ## Language Technologies Institute ##
4 ## Carnegie Mellon University ##
5 ## Copyright (c) 1999-2017 ##
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 ([email protected]) ##
38 ## Kevin A. Lenzo ([email protected]) ##
39 ## and others see ACKNOWLEDGEMENTS ##
40 ## Date: Sep 2018 ##
41 ## Version: 2.2 current ##
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 sapi tools main
50 CONFIG=configure configure.in config.sub config.guess \
51 missing install-sh mkinstalldirs
52 OLD_WINDOWS = Exports.def flite.sln fliteDll.vcproj
53 WINDOWS = Exports.def flite.sln flite.v11.suo fliteDll.vcxproj fliteDll.vcxproj.filters
54 FILES = Makefile README.md ACKNOWLEDGEMENTS COPYING $(CONFIG) $(WINDOWS)
55 DIST_CLEAN = .time-stamp $(TOP)/build/ \
56 config.cache config.log config.status \
57 config/config config/system.mak FileList
58
59 HOST_ONLY_DIRS = tools main
60 ALL = $(BUILD_DIRS)
61
62 config_dummy := $(shell test -f config/config || ( echo '*** '; echo '*** Making default config file ***'; echo '*** '; ./configure; ) >&2)
63
64 include $(TOP)/config/common_make_rules
65
66 ifeq ($(TARGET_OS),wince)
67 BUILD_DIRS += wince
68 endif
69
70 config/config: config/config.in config.status
71 ./config.status
72
73 configure: configure.in
74 autoconf
75
76 get_voices:
77 ./bin/get_voices us_voices
78 # ./bin/get_voices indic_voices
79
80 backup: time-stamp
81 @ $(RM) -f $(TOP)/FileList
82 @ $(MAKE) file-list
83 @ echo .time-stamp >>FileList
84 @ ln -s . $(PROJECT_PREFIX)-$(PROJECT_VERSION)-$(PROJECT_STATE)
85 @ sed 's/^\.\///' <FileList | sed 's/^/'$(PROJECT_PREFIX)-$(PROJECT_VERSION)-$(PROJECT_STATE)'\//' >.file-list-all
86 @ tar jcvf $(PROJECT_PREFIX)-$(PROJECT_VERSION)-$(PROJECT_STATE).tar.bz2 `cat $(PROJECT_PREFIX)-$(PROJECT_VERSION)-$(PROJECT_STATE)/.file-list-all`
87 @ $(RM) -f $(TOP)/.file-list-all
88 @ $(RM) $(PROJECT_PREFIX)-$(PROJECT_VERSION)-$(PROJECT_STATE)
89 @ ls -l $(PROJECT_PREFIX)-$(PROJECT_VERSION)-$(PROJECT_STATE).tar.bz2
90
91 backupbz2: time-stamp
92 @ $(RM) -f $(TOP)/FileList
93 @ $(MAKE) file-list
94 @ echo .time-stamp >>FileList
95 @ ln -s . $(PROJECT_PREFIX)-$(PROJECT_VERSION)-$(PROJECT_STATE)
96 @ 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
97 @ tar jcvf $(PROJECT_PREFIX)-$(PROJECT_VERSION)-$(PROJECT_STATE).tar.bz2 `cat $(PROJECT_PREFIX)-$(PROJECT_VERSION)-$(PROJECT_STATE)/.file-list-all`
98 @ $(RM) -f $(TOP)/.file-list-all
99 @ $(RM) $(PROJECT_PREFIX)-$(PROJECT_VERSION)-$(PROJECT_STATE)
100 @ ls -l $(PROJECT_PREFIX)-$(PROJECT_VERSION)-$(PROJECT_STATE).tar.bz2
101
102 tags:
103 @ $(RM) -f $(TOP)/FileList
104 @ $(MAKE) file-list
105 etags `cat FileList | grep "\.[ch]$$"`
106
107 install:
108 @echo Installing
109 mkdir -p $(DESTDIR)$(INSTALLBINDIR)
110 mkdir -p $(DESTDIR)$(INSTALLLIBDIR)
111 mkdir -p $(DESTDIR)$(INSTALLINCDIR)
112 $(INSTALL) -m 644 include/*.h $(DESTDIR)$(INSTALLINCDIR)
113 @ $(MAKE) -C main --no-print-directory DESTDIR=$(DESTDIR) install
114
115 time-stamp :
116 @ echo $(PROJECT_NAME) >.time-stamp
117 @ echo $(PROJECT_PREFIX) >>.time-stamp
118 @ echo $(PROJECT_VERSION) >>.time-stamp
119 @ echo $(PROJECT_DATE) >>.time-stamp
120 @ echo $(PROJECT_STATE) >>.time-stamp
121 @ echo $(LOGNAME) >>.time-stamp
122 @ hostname >>.time-stamp
123 @ date >>.time-stamp
124
125 # Convinience command, to generate cg dumped voices
126 voices: ./bin/flite_cmu_us_awb ./bin/flite_cmu_us_rms ./bin/flite_cmu_us_rms
127 mkdir -p voices
128 ./bin/flite_cmu_us_awb -voicedump voices/cmu_us_awb.flitevox
129 ./bin/flite_cmu_us_rms -voicedump voices/cmu_us_rms.flitevox
130 ./bin/flite_cmu_us_slt -voicedump voices/cmu_us_slt.flitevox
131
132 test:
133 @ $(MAKE) --no-print-directory -C testsuite test
134