-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
31 lines (23 loc) · 867 Bytes
/
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
.PHONY: make_conda update_conda remove_conda update_data update_data_dry
.ONESHELL:
PROJECT_NAME = nmr_assign_state
make_conda:
conda env create -f environment.yml
ipython kernel install --user --name=$(PROJECT_NAME)
update_conda:
conda env update --file environment.yml
ipython kernel install --user --name=$(PROJECT_NAME)
remove_conda:
conda remove --name=$(PROJECT_NAME) --all
update_data:
while read a b;do rsync -rauLih --progress --include-from=data/raw/include_list.txt $$a data/raw/$$b;done < data/raw/dir_list.txt
python src/data/get_external_data.py
update_data_dry:
while read a b;do rsync -raunLih --include-from=data/raw/include_list.txt $$a data/raw/$$b;done < data/raw/dir_list.txt
help:
@echo "Possible options:"
@echo "make_conda"
@echo "update_conda"
@echo "remove_conda"
@echo "update_data"
@echo "update_data_dry"