Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/marian-regression-tests.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Grundkiewicz <rgrundki@exseed.ed.ac.uk>2017-09-26 23:27:54 +0300
committerRoman Grundkiewicz <rgrundki@exseed.ed.ac.uk>2017-09-26 23:27:54 +0300
commitcb86682cde345b4ffff25be3b49aaed1ff6228a5 (patch)
treedc6be4ab79cc1976440059a793dc983009468787 /Makefile
parent2855410054841c147bf5d7f014fc94891a38a9b3 (diff)
Move marian-dev to tools
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile31
1 files changed, 13 insertions, 18 deletions
diff --git a/Makefile b/Makefile
index bbd423e..c90ced5 100644
--- a/Makefile
+++ b/Makefile
@@ -1,31 +1,26 @@
-
THREADS=16
-GIT_MARIAN=http://github.com/marian-nmt/marian-dev.git
+GIT_MARIAN_DEV=http://github.com/marian-nmt/marian-dev.git
+GIT_MARIAN=http://github.com/marian-nmt/marian.git
GIT_MOSES_SCRIPTS=http://github.com/marian-nmt/moses-scripts.git
GIT_SUBWORD_NMT=http://github.com/rsennrich/subword-nmt.git
-URL_MODELS=
-
-.PHONY: marian install
+.PHONY: tools/marian-dev tools/marian install
.SECONDARY:
-install: marian/build/marian tools
+#####################################################################
-tools:
- mkdir -p $@
- cd $@ && git clone $(GIT_MOSES_SCRIPTS)
- cd $@ && git clone $(GIT_SUBWORD_NMT)
+install: tools models
+
+tools: tools/marian
+ git -C $@/moses-scripts pull || git clone $(GIT_MOSES_SCRIPTS) $@/moses-scripts
+ git -C $@/subword-nmt pull || git clone $(GIT_SUBWORD_NMT) $@/subword-nmt
+
+tools/marian:
+ git -C $@ pull || git clone $(GIT_MARIAN_DEV) $@
+ mkdir -p $@/build && cd $@/build && cmake .. -DCOMPILE_EXAMPLES=ON -DUSE_CUDNN=ON && make -j$(THREADS)
models:
mkdir -p $@
cd $@ && bash download_wmt16.sh
-
-#####################################################################
-
-marian/build/marian: marian
- mkdir -p $</build && cd $</build && cmake .. -DCOMPILE_EXAMPLES=ON -DUSE_CUDNN=ON && make -j$(THREADS)
-
-marian:
- git -C $@ pull || git clone $(GIT_MARIAN) $@