提交 d367da28 编写于 作者: H Hui Zhang

fix sctk install

上级 f29caf8d
...@@ -18,5 +18,7 @@ tools/sox-14.4.2 ...@@ -18,5 +18,7 @@ tools/sox-14.4.2
tools/soxbindings tools/soxbindings
tools/montreal-forced-aligner/ tools/montreal-forced-aligner/
tools/Montreal-Forced-Aligner/ tools/Montreal-Forced-Aligner/
tools/sctk
tools/sctk-20159b5/
*output/ *output/
SHELL:= /bin/bash SHELL:= /bin/bash
PYTHON:= python3.7 PYTHON:= python3.7
CXX ?= g++
CC ?= gcc # used for sph2pipe
# CXX = clang++ # Uncomment these lines...
# CC = clang # ...to build with Clang.
WGET ?= wget
.PHONY: all clean .PHONY: all clean
all: virtualenv kenlm.done sox.done soxbindings.done mfa.done all: virtualenv kenlm.done sox.done soxbindings.done mfa.done sclite.done
virtualenv: virtualenv:
test -d venv || virtualenv -p $(PYTHON) venv test -d venv || virtualenv -p $(PYTHON) venv
...@@ -41,11 +49,22 @@ mfa.done: ...@@ -41,11 +49,22 @@ mfa.done:
touch mfa.done touch mfa.done
#== SCTK ===============================================================================
# SCTK official repo does not have version tags. Here's the mapping:
# # 2.4.9 = 659bc36; 2.4.10 = d914e1b; 2.4.11 = 20159b5.
SCTK_GITHASH = 20159b5
SCTK_CXFLAGS = -w -march=native
SCTK_MKENV = CFLAGS="$(CFLAGS) $(SCTK_CXFLAGS)" \
CXXFLAGS="$(CXXFLAGS) -std=c++11 $(SCTK_CXFLAGS)" \
# Keep the existing target 'sclite' to avoid breaking the users who might have # Keep the existing target 'sclite' to avoid breaking the users who might have
# scripted it in. # scripted it in.
.PHONY: sclite sctk_cleaned sctk_made .PHONY: sclite.done sctk_cleaned sctk_made
sclite sctk_made: sctk/.compiled sclite.done sctk_made: sctk/.compiled
touch sclite.done
sctk/.compiled: sctk sctk/.compiled: sctk
rm -f sctk/.compiled rm -f sctk/.compiled
...@@ -74,4 +93,4 @@ sctk_cleaned: ...@@ -74,4 +93,4 @@ sctk_cleaned:
-for d in sctk/ sctk-*/; do \ -for d in sctk/ sctk-*/; do \
[ ! -f $$d/.compiled ] || $(MAKE) -C $$d clean; \ [ ! -f $$d/.compiled ] || $(MAKE) -C $$d clean; \
rm -f $$d/.compiled; \ rm -f $$d/.compiled; \
done done
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册