Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# This is the top-level Makefile for Kaldi.
# Also see kaldi.mk which supplies options and some rules
# used by the Makefiles in the subdirectories.
# Compile subdirectories starting with the things "depended on".
SUBDIRS = base matrix util feat tree gmm sgmm fstext hmm optimization \
transform lm decoder bin fstbin gmmbin fgmmbin sgmmbin featbin
all: $(SUBDIRS)
echo Done
clean:
-for x in $(SUBDIRS); do $(MAKE) -C $$x clean; done
# When testing, stop on first failure.
test:
-for x in $(SUBDIRS); do $(MAKE) -C $$x test || (echo "test $$x failed"; exit 1); done
valgrind:
-for x in $(SUBDIRS); do $(MAKE) -C $$x valgrind || (echo "valgrind on $$x failed"; exit 1); done
depend:
-for x in $(SUBDIRS); do $(MAKE) -C $$x depend; done
$(SUBDIRS) : .phony
$(MAKE) -C $@
.phony:
# % is a wildcard that matches targets "gmm", "fstext" etc.
# $@ is the thing that % expanded to (e.g. utils). we
# cd to there and 'make'.