diff options
author | Roman Grundkiewicz <rgrundki@exseed.ed.ac.uk> | 2017-09-26 23:27:54 +0300 |
---|---|---|
committer | Roman Grundkiewicz <rgrundki@exseed.ed.ac.uk> | 2017-09-26 23:27:54 +0300 |
commit | cb86682cde345b4ffff25be3b49aaed1ff6228a5 (patch) | |
tree | dc6be4ab79cc1976440059a793dc983009468787 /Makefile | |
parent | 2855410054841c147bf5d7f014fc94891a38a9b3 (diff) |
Move marian-dev to tools
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 31 |
1 files changed, 13 insertions, 18 deletions
@@ -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) $@ |