-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathMakefile
52 lines (43 loc) · 2.15 KB
/
Makefile
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
MAKEPATH := $(realpath $(dir $(abspath $(lastword $(MAKEFILE_LIST)))).)
ROOT_DIR = $(realpath $(MAKEPATH)/.)
LANGLIST = cs de en es fr ja nl pt ru sv uk
#TODO: TRW - generalize!
PLATFORM = $(IKNOWPLAT)
MODE ?= release
include $(ROOT_DIR)/build/make/platforms/$(PLATFORM).mak
all : engine
test : enginetest engineloadtest
$(RUNTIMELOADPATHVAR)=$(ROOT_DIR)/kit/$(PLATFORM)/$(MODE)/bin:$(ICUDIR)/lib $(ROOT_DIR)/kit/$(PLATFORM)/$(MODE)/bin/iknowenginetest
engineloadtest : engine base
$(MAKE) -f $(ROOT_DIR)/modules/iKnowExplicitTest/engineloadtest.mak
languagecompiler : base core
$(MAKE) -f $(ROOT_DIR)/modules/compiler/iKnowLanguageCompiler/languagecompiler.mak
enginetest : engine base
$(MAKE) -f $(ROOT_DIR)/modules/enginetest/enginetest.mak
engine : base shell core icu
$(MAKE) -f $(ROOT_DIR)/modules/engine/engine.mak
shell : base ali core modelcommon models
$(MAKE) -f $(ROOT_DIR)/modules/shell/shell.mak
models : base ali core modelcommon
cd $(ROOT_DIR)/modules/aho && (ls -d $(LANGLIST) | xargs -I lang sh -c "export IKNOWMODELLANG=lang ; $(MAKE) -f model0.mak ; $(MAKE) -f model1.mak")
modelcommon : base ali core
$(MAKE) -f $(ROOT_DIR)/modules/aho/model_common.mak
core : base ali icu
$(MAKE) -f $(ROOT_DIR)/modules/core/core.mak
ali : base icu
$(MAKE) -f $(ROOT_DIR)/modules/ali/ali.mak
base : icu
$(MAKE) -f $(ROOT_DIR)/modules/base/base.mak
icu :
test -d $(ICUDIR)/include/unicode && (ls $(ICUDIR)/lib/libicu* > /dev/null)
clean :
$(MAKE) -f $(ROOT_DIR)/modules/compiler/iKnowLanguageCompiler/languagecompiler.mak clean
$(MAKE) -f $(ROOT_DIR)/modules/enginetest/enginetest.mak clean
$(MAKE) -f $(ROOT_DIR)/modules/engine/engine.mak clean
$(MAKE) -f $(ROOT_DIR)/modules/shell/shell.mak clean
cd $(ROOT_DIR)/modules/aho && (ls -d $(LANGLIST) | xargs -I lang sh -c "export IKNOWMODELLANG=lang ; $(MAKE) -f model0.mak clean ; $(MAKE) -f model1.mak clean")
$(MAKE) -f $(ROOT_DIR)/modules/aho/model_common.mak clean
$(MAKE) -f $(ROOT_DIR)/modules/core/core.mak clean
$(MAKE) -f $(ROOT_DIR)/modules/ali/ali.mak clean
$(MAKE) -f $(ROOT_DIR)/modules/base/base.mak clean
.PHONY : all clean test enginetest languagecompiler engine shell models modelcommon core ali base icu