2012-09-18 22:42:00 +04:00
|
|
|
# SHELL += -x
|
|
|
|
|
2013-01-19 02:02:24 +04:00
|
|
|
all: sph2pipe atlas irstlm_tgt sclite_tgt openfst_tgt
|
2012-09-18 22:42:00 +04:00
|
|
|
|
|
|
|
clean: openfst_cleaned sclite_cleaned irstlm_cleaned
|
|
|
|
|
|
|
|
openfst_cleaned:
|
2012-12-15 21:07:11 +04:00
|
|
|
$(MAKE) -C openfst-1.3.2 clean
|
2012-09-18 22:42:00 +04:00
|
|
|
|
|
|
|
irstlm_cleaned:
|
|
|
|
$(MAKE) -C irstlm clean
|
|
|
|
|
|
|
|
sclite_cleaned:
|
|
|
|
$(MAKE) -C sctk-2.4.0 clean
|
|
|
|
|
|
|
|
distclean:
|
2012-12-15 21:07:11 +04:00
|
|
|
rm -rf openfst-1.3.2/
|
2012-09-18 22:42:00 +04:00
|
|
|
rm -rf sctk-2.4.0/
|
|
|
|
rm -rf ATLAS/
|
|
|
|
rm -rf irstlm/
|
|
|
|
rm -rf sph2pipe_v2.5/
|
|
|
|
rm -rf sph2pipe_v2.5.tar.gz
|
|
|
|
rm -rf atlas3.8.3.tar.gz
|
|
|
|
rm -rf sctk-2.4.0-20091110-0958.tar.bz2
|
2012-12-15 21:07:11 +04:00
|
|
|
rm -rf openfst-1.3.2.tar.gz
|
2012-09-21 23:03:57 +04:00
|
|
|
rm -f openfst
|
2012-09-18 22:42:00 +04:00
|
|
|
|
|
|
|
openfst_tgt: openfst_compiled
|
|
|
|
|
|
|
|
.PHONY: openfst_compiled
|
2012-12-15 21:07:11 +04:00
|
|
|
openfst_compiled: openfst-1.3.2/Makefile
|
|
|
|
cd openfst-1.3.2/; \
|
2012-09-18 22:42:00 +04:00
|
|
|
$(MAKE) install
|
|
|
|
|
2012-12-15 21:07:11 +04:00
|
|
|
openfst-1.3.2/Makefile: openfst-1.3.2/.patched
|
|
|
|
cd openfst-1.3.2/; \
|
|
|
|
./configure --prefix=`pwd` --enable-static --disable-shared --enable-far --enable-ngram-fsts
|
2012-09-18 22:42:00 +04:00
|
|
|
|
2013-01-19 02:02:24 +04:00
|
|
|
|
|
|
|
.PHONY: openfst-1.3.2/.patched
|
2012-12-19 00:28:12 +04:00
|
|
|
openfst-1.3.2/.patched: | openfst-1.3.2_tgt
|
2012-12-15 21:07:11 +04:00
|
|
|
-cd openfst-1.3.2/src/include/fst; \
|
2012-09-18 22:42:00 +04:00
|
|
|
patch -p0 -N < ../../../../openfst.patch;
|
|
|
|
touch $@
|
|
|
|
|
2012-12-19 00:28:12 +04:00
|
|
|
openfst-1.3.2_tgt: openfst-1.3.2.tar.gz
|
2012-12-15 21:07:11 +04:00
|
|
|
tar xozf openfst-1.3.2.tar.gz
|
|
|
|
-rm openfst
|
|
|
|
-ln -s openfst-1.3.2 openfst
|
2012-09-18 22:42:00 +04:00
|
|
|
|
2012-12-15 21:07:11 +04:00
|
|
|
openfst-1.3.2.tar.gz:
|
2013-01-10 02:23:50 +04:00
|
|
|
wget http://openfst.cs.nyu.edu/twiki/pub/FST/FstDownload/openfst-1.3.2.tar.gz || \
|
2012-12-15 21:07:11 +04:00
|
|
|
wget -T 10 -t 3 --no-check-certificate http://www.openfst.org/twiki/pub/FST/FstDownload/openfst-1.3.2.tar.gz
|
2012-09-18 22:42:00 +04:00
|
|
|
|
|
|
|
sclite_tgt: sclite_compiled
|
|
|
|
|
|
|
|
.PHONY: sclite_compiled
|
2013-02-06 06:46:33 +04:00
|
|
|
sclite_compiled: sctk_patched
|
2012-09-18 22:42:00 +04:00
|
|
|
cd sctk-2.4.0; \
|
|
|
|
$(MAKE) config && $(MAKE) all && $(MAKE) install && $(MAKE) doc
|
|
|
|
|
2013-02-06 06:46:33 +04:00
|
|
|
.PHONY: sctk_patched
|
|
|
|
sctk_patched: | sctk-2.4.0
|
2012-09-18 22:42:00 +04:00
|
|
|
cd sctk-2.4.0/; \
|
2013-02-06 06:46:33 +04:00
|
|
|
for x in src/asclite/core/recording.h src/asclite/core/recording.cpp; do \
|
2012-09-18 22:42:00 +04:00
|
|
|
sed 's/Filter::Filter/::Filter/' $$x > tmpf; mv tmpf $$x; \
|
|
|
|
done;
|
|
|
|
|
|
|
|
sctk-2.4.0: sctk-2.4.0-20091110-0958.tar.bz2
|
|
|
|
tar xojf sctk-2.4.0-20091110-0958.tar.bz2
|
|
|
|
|
|
|
|
sctk-2.4.0-20091110-0958.tar.bz2:
|
2013-01-10 02:23:50 +04:00
|
|
|
wget -T 10 -t 3 ftp://jaguar.ncsl.nist.gov/pub/sctk-2.4.0-20091110-0958.tar.bz2 || \
|
|
|
|
wget --no-check-certificate -T 10 https://sourceforge.net/projects/kaldi/files/sctk-2.4.0-20091110-0958.tar.bz2
|
2012-09-18 22:42:00 +04:00
|
|
|
|
|
|
|
irstlm_tgt: irstlm_compiled
|
|
|
|
|
|
|
|
.PHONY: irstlm_compiled
|
|
|
|
irstlm_compiled: irstlm/Makefile
|
|
|
|
cd irstlm/; \
|
|
|
|
$(MAKE); $(MAKE) install
|
|
|
|
|
|
|
|
irstlm/Makefile: irstlm/.patched
|
|
|
|
cd irstlm; \
|
|
|
|
(./regenerate-makefiles.sh || ./regenerate-makefiles.sh) && \
|
|
|
|
./configure --prefix `pwd`
|
|
|
|
|
|
|
|
|
|
|
|
irstlm/.patched: | irstlm
|
2012-09-29 23:15:55 +04:00
|
|
|
-cd irstlm;\
|
2013-01-25 20:05:15 +04:00
|
|
|
patch --verbose -N -p0 < ../interpolatedwrite-5.60.02.patch
|
2012-09-18 22:42:00 +04:00
|
|
|
touch $@
|
|
|
|
|
|
|
|
irstlm:
|
|
|
|
svn -r 398 co https://irstlm.svn.sourceforge.net/svnroot/irstlm/trunk irstlm
|
|
|
|
|
|
|
|
atlas: ATLAS/include/cblas.h
|
|
|
|
|
|
|
|
ATLAS/include/cblas.h: | atlas3.8.3.tar.gz
|
|
|
|
tar xozf atlas3.8.3.tar.gz ATLAS/include
|
|
|
|
|
|
|
|
atlas3.8.3.tar.gz:
|
2013-01-10 02:23:50 +04:00
|
|
|
wget -T 10 http://sourceforge.net/projects/math-atlas/files/Stable/3.8.3/atlas3.8.3.tar.gz
|
2012-09-18 22:42:00 +04:00
|
|
|
|
|
|
|
sph2pipe: sph2pipe_compiled
|
|
|
|
|
|
|
|
sph2pipe_compiled: sph2pipe_v2.5/sph2pipe
|
|
|
|
|
|
|
|
sph2pipe_v2.5/sph2pipe: | sph2pipe_v2.5
|
|
|
|
cd sph2pipe_v2.5/; \
|
2012-09-21 23:31:13 +04:00
|
|
|
$(CC) -o sph2pipe *.c -lm
|
2012-09-18 22:42:00 +04:00
|
|
|
|
|
|
|
sph2pipe_v2.5: sph2pipe_v2.5.tar.gz
|
|
|
|
tar xzf sph2pipe_v2.5.tar.gz
|
|
|
|
|
|
|
|
sph2pipe_v2.5.tar.gz:
|
|
|
|
wget -T 10 -t 3 http://merlin.fit.vutbr.cz/kaldi/sph2pipe_v2.5.tar.gz
|
|
|
|
|
2013-01-16 05:09:56 +04:00
|
|
|
openblas: openblas_compiled
|
|
|
|
|
|
|
|
.PHONY: openblas_compiled
|
|
|
|
|
2013-01-19 02:02:24 +04:00
|
|
|
fortran_opt = $(shell gcc -v 2>&1 | perl -e '$$x = join(" ", <STDIN>); if($$x =~ m/target=\S+64\S+/) { print "BINARY=64"; }')
|
2013-01-16 05:09:56 +04:00
|
|
|
|
|
|
|
openblas_compiled:
|
|
|
|
-git clone git://github.com/xianyi/OpenBLAS
|
2013-01-21 02:19:47 +04:00
|
|
|
$(MAKE) PREFIX=`pwd`/OpenBLAS/install FC=gfortran $(fortran_opt) DEBUG=1 USE_THREAD=0 -C OpenBLAS all install
|