CofeehousePy/Makefile

103 lines
2.5 KiB
Makefile
Raw Normal View History

2020-12-25 21:00:04 +01:00
clean_apt:
2020-12-25 20:35:34 +01:00
rm -rf mods/apt/build mods/apt/dist mods/apt/coffeehousemod_apt.egg-info
2020-12-25 20:24:45 +01:00
2020-12-25 21:00:04 +01:00
clean_stopwords:
2020-12-25 20:35:34 +01:00
rm -rf mods/stopwords/build mods/stopwords/dist mods/stopwords/coffeehousemod_stopwords.egg-info
2020-12-25 20:24:45 +01:00
2020-12-25 21:00:04 +01:00
clean_tokenizer:
2020-12-25 20:35:34 +01:00
rm -rf mods/tokenizer/build mods/tokenizer/dist mods/tokenizer/coffeehousemod_tokenizer.egg-info
2020-12-25 20:24:45 +01:00
2020-12-25 21:00:04 +01:00
clean_dltc:
rm -rf dltc/build dltc/dist dltc/coffeehouse_dltc.egg-info
2020-12-25 20:16:54 +01:00
2020-12-25 21:00:04 +01:00
clean_nlpfr:
rm -rf nlpfr/build nlpfr/dist nlpfr/nltk.egg-info
2020-12-25 21:03:32 +01:00
clean_alg:
rm -rf alg/build alg/dist alg/alg.egg-info
2020-12-25 21:14:57 +01:00
clean_his:
rm -rf hyper_internal_service/build hyper_internal_service/dist hyper_internal_service/hyper_internal_service.egg-info
2020-12-25 21:00:04 +01:00
clean:
make clean_apt clean_stopwords clean_tokenizer clean_nlpfr
make clean_dltc
2020-12-25 21:14:57 +01:00
make clean_his
2020-12-25 21:03:32 +01:00
make clean_alg
2020-12-25 21:00:04 +01:00
# ======================================================================================================================
build_apt:
2020-12-25 20:35:34 +01:00
cd mods/apt; python3 setup.py build; python3 setup.py sdist
2020-12-25 20:24:45 +01:00
2020-12-25 21:00:04 +01:00
build_stopwords:
2020-12-25 20:35:34 +01:00
cd mods/stopwords; python3 setup.py build; python3 setup.py sdist
2020-12-25 20:24:45 +01:00
2020-12-25 21:00:04 +01:00
build_tokenizer:
2020-12-25 20:35:34 +01:00
cd mods/tokenizer; python3 setup.py build; python3 setup.py sdist
2020-12-25 20:24:45 +01:00
2020-12-25 21:00:04 +01:00
build_mods:
make build_apt build_stopwords build_tokenizer
build_nlpfr:
make build_mods
cd nlpfr; python3 setup.py build; python3 setup.py sdist
build_dltc:
2020-12-25 20:35:34 +01:00
cd dltc; python3 setup.py build; python3 setup.py sdist
2020-12-25 20:16:54 +01:00
2020-12-25 21:03:32 +01:00
build_alg:
2020-12-25 21:14:57 +01:00
cd alg; python3 setup.py build; python3 setup.py sdist
build_his:
cd hyper_internal_service; python3 setup.py build; python3 setup.py sdist
2020-12-25 21:03:32 +01:00
2020-12-25 21:00:04 +01:00
build:
make build_nlpfr
2020-12-25 21:14:57 +01:00
make build_his
2020-12-25 21:00:04 +01:00
make build_dltc
2020-12-25 21:03:32 +01:00
make build_alg
2020-12-25 21:00:04 +01:00
# ======================================================================================================================
install_apt:
2020-12-25 20:35:34 +01:00
cd mods/apt; python3 setup.py install
2020-12-25 21:00:04 +01:00
install_stopwords:
2020-12-25 20:35:34 +01:00
cd mods/stopwords; python3 setup.py install
2020-12-25 21:00:04 +01:00
install_tokenizer:
2020-12-25 20:35:34 +01:00
cd mods/tokenizer; python3 setup.py install
2020-12-25 21:00:04 +01:00
install_mods:
make install_apt install_stopwords install_tokenizer
install_nlpfr:
make install_mods
cd nlpfr; python3 setup.py install
install_dltc:
cd dltc; python3 setup.py install
2020-12-25 21:03:32 +01:00
install_alg:
cd alg; python3 setup.py install
2020-12-25 21:14:57 +01:00
install_his:
cd hyper_internal_service; make install
2020-12-25 21:00:04 +01:00
install:
2020-12-25 21:03:32 +01:00
make install_nlpfr
2020-12-25 21:14:57 +01:00
make install_his
2020-12-25 21:03:32 +01:00
make install_dltc
make install_alg
2020-12-25 21:14:57 +01:00
# ======================================================================================================================
system_prep_pip:
apt -y install python3 python3-distutils wget curl
wget https://bootstrap.pypa.io/get-pip.py
python3 get-pip.py
rm get-pip.py
system_prep_gcc:
apt -y install gcc