-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (29 loc) · 871 Bytes
/
Makefile
File metadata and controls
33 lines (29 loc) · 871 Bytes
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
OS = ${shell uname}
JULIUS = julius-4.4.2
TOOLDIR = tool
BUILDDIR = build
ifeq ($(OS), Linux)
FLAGS_AFTER = --with-mictype=alsa --enable-shared
FLAGS_BEFORE = CFLAGS=-fPIC CXXFLAGS=-fPIC
else
ifeq ($(OS), Darwin)
FLAGS_AFTER = --with-mictype=portaudio
FLAGS_BEFORE =
else
FLAGS =
FLAGS_BEFORE =
endif
endif
all:
mkdir -p $(TOOLDIR)
cd $(JULIUS) && $(FLAGS_BEFORE) ./configure $(FLAGS_AFTER) && make
cp $(JULIUS)/gramtools/mkdfa/mkdfa.pl $(TOOLDIR)/mkdfa
cp $(JULIUS)/gramtools/mkdfa/mkfa-1.44-flex/mkfa $(TOOLDIR)/.
cp $(JULIUS)/gramtools/generate/generate $(TOOLDIR)/.
cp $(JULIUS)/gramtools/dfa_minimize/dfa_minimize $(TOOLDIR)/.
node-gyp rebuild
clean:
rm -rf $(TOOLDIR) $(BUILDDIR)
cd $(JULIUS) && make clean && make distclean
rm -rf node_modules/async node_modules/mecab-async node_modules/kana2voca
rmdir node_modules