-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (24 loc) · 753 Bytes
/
Makefile
File metadata and controls
32 lines (24 loc) · 753 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
SIMPLE_MAKES=src/cpp/kenlm-wrapper src/cpp/ARPA-selector sample-data
CMAKES=libs/kenlm
SIP_MAKES=src/sip/kenlm-bindings src/sip/selector-bindings
.PHONY: $(SIMPLE_MAKES) $(SIP_MAKES) $(CMAKES)
all: $(SIMPLE_MAKES) $(SIP_MAKES) $(CMAKES)
$(SIMPLE_MAKES):
make -C $@
$(CMAKES):
(cd $@ ; test -f Makefile || cmake .)
make -C $@
cp $(CMAKES)/bin/build_binary bin/kenlm/
$(SIP_MAKES):
(cd $@; sip-install --target-dir ../../../bin/$(notdir $@))
#
# -- dependencies --
#
# both use KenLM
src/cpp/kenlm-wrapper: libs/kenlm
src/cpp/ARPA-selector: libs/kenlm
# bindings needs C++ objects
src/sip/kenlm-bindings: src/cpp/kenlm-wrapper
src/sip/selector-bindings: src/cpp/ARPA-selector
# building binaries
sample-data: libs/kenlm src/cpp/ARPA-selector