Skip to content
Snippets Groups Projects
Makefile 1.1 KiB
Newer Older
# 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 optimization gmm tied transform sgmm \
Arnab Ghoshal's avatar
Arnab Ghoshal committed
          fstext hmm lm decoder lat \
          bin fstbin gmmbin fgmmbin tiedbin sgmmbin featbin \
          nnet_cpu nnetbin_cpu latbin rnn
Karel Vesely's avatar
Karel Vesely committed
all: test_install remove_locks $(SUBDIRS) 
Dan Povey's avatar
Dan Povey committed
test_install:
	[ -d ../tools/openfst-1.2.10 ] || ( echo "You now need openfst-1.2.10.  Do: cd ../tools; svn update; ./install.sh; cd ../src; make depend; make"; exit 1 )
Karel Vesely's avatar
Karel Vesely committed
remove_locks:
	rm */.lock 2>/dev/null || exit 0;
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: