Skip to content

Commit fe576c6

Browse files
committed
trunk: add missing dependencies to Makefile (and script to automatically find them).
git-svn-id: https://svn.code.sf.net/p/kaldi/code/trunk@4927 5e6a8d80-dfce-4ca6-a32a-6e07a63d50c8
1 parent b905697 commit fe576c6

3 files changed

Lines changed: 23 additions & 12 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
cd src
4+
5+
for x in */Makefile; do
6+
dir=$(dirname $x);
7+
for dependency in $(perl -ape 's/\\\n//;' <$x | grep ADDLIBS | awk '{$1="";$2="";print;}' | perl -ane 'print "$1\n" while ( $_ =~ m|\.\./([^/]+)/|g ); '); do
8+
if ! perl -ape 's/\\\n//;' <Makefile | grep -E "\b$dir\b.*:" | grep -w $dependency >/dev/null; then
9+
echo "$dir: $dependency";
10+
fi
11+
done
12+
done

‎src/Makefile‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -153,27 +153,27 @@ bin fstbin gmmbin fgmmbin sgmmbin sgmm2bin featbin nnetbin nnet2bin latbin ivect
153153
base:
154154
matrix : base
155155
util: base matrix
156-
thread: util
157-
feat: base matrix util gmm transform
156+
thread: util matrix base
157+
feat: base matrix util gmm transform tree thread
158158
tree: base util matrix
159159
optimization: base matrix
160160
gmm: base util matrix tree thread
161-
transform: base util matrix gmm tree
161+
transform: base util matrix gmm tree thread
162162
sgmm: base util matrix gmm tree transform thread hmm
163163
sgmm2: base util matrix gmm tree transform thread hmm
164164
fstext: base util matrix tree
165-
hmm: base tree matrix
165+
hmm: base tree matrix util
166166
lm: base util fstext
167167
decoder: base util matrix gmm sgmm hmm tree transform lat
168-
lat: base util hmm
168+
lat: base util hmm tree matrix
169169
cudamatrix: base util matrix
170170
nnet: base util matrix cudamatrix
171-
nnet2: base util matrix thread lat
171+
nnet2: base util matrix thread lat gmm hmm tree transform cudamatrix
172172
ivector: base util matrix thread transform tree gmm
173173
#3)Dependencies for optional parts of Kaldi
174-
onlinebin: base matrix util feat tree optimization gmm transform sgmm sgmm2 fstext hmm lm decoder lat cudamatrix nnet nnet2 online
175-
online2bin: base matrix util feat tree optimization gmm transform sgmm sgmm2 fstext hmm lm decoder lat cudamatrix nnet nnet2 online2
174+
onlinebin: base matrix util feat tree optimization gmm transform sgmm sgmm2 fstext hmm lm decoder lat cudamatrix nnet nnet2 online thread
175+
online2bin: base matrix util feat tree optimization gmm transform sgmm sgmm2 fstext hmm lm decoder lat cudamatrix nnet nnet2 online2 thread ivector
176176
# python-kaldi-decoding: base matrix util feat tree optimization thread gmm transform sgmm sgmm2 fstext hmm decoder lat online
177-
online: decoder gmm transform feat matrix util base lat hmm thread
177+
online: decoder gmm transform feat matrix util base lat hmm thread tree
178178
online2: decoder gmm transform feat matrix util base lat hmm thread ivector cudamatrix nnet2
179-
kwsbin: fstext lat base util
179+
kwsbin: fstext lat base util hmm tree matrix

‎src/doc/other.dox‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@
3535
a good place to ask questions. Most user questions go to the "Help" forum. If you want to receive
3636
all the traffic, you have to be logged in to Sourceforge; you can subscribe to the forum by clicking
3737
on the "Help" forum and then clicking the envelope icon towards the top right. There are also
38-
"Open Discussion" and "Developers" forums, which get less traffic (these are deprecated but
39-
you can subscribe to them too).
38+
"Open Discussion" and "Developers" forums, which get less traffic.
4039

4140
There is a mailing list <a
4241
href=mailto:kaldi-developers@lists.sourceforge.net>kaldi-developers@lists.sourceforge.net</a>

0 commit comments

Comments
 (0)