-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (33 loc) · 1.03 KB
/
Copy pathMakefile
File metadata and controls
41 lines (33 loc) · 1.03 KB
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
33
34
35
36
37
38
39
40
41
.ONESHELL:
.PHONY: help venv install run_ run_sync_ run run_sync
help:
@echo "Please use 'make <target>' where <target> is one of"
@echo " install_all create local virtual environment, and install packages in local virtual environment"
@echo " install install packages in local virtual environment"
@echo " run run the sync script (without periodic sync)"
@echo " run_sync run the sync script (with periodic sync)"
venv:
( \
python3 -m venv sync_venv; \
source sync_venv/bin/activate; \
)
install: venv
( \
source sync_venv/bin/activate; \
pip install -r requirements.txt; \
)
@echo "Virtual environment created, packages installed in sync_venv, use it with:\nsource sync_venv/bin/activate"
run_:
( \
source sync_venv/bin/activate; \
python3 src/sync.py; \
)
run_sync_:
( \
source sync_venv/bin/activate; \
python3 src/sync.py -sync; \
)
run:
python3 src/sync.py
run_sync:
python3 src/sync.py -sync