forked from scalesim-project/krittika
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (26 loc) · 903 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
venvdir := venv
all: clean create_venv
@echo "Done"
create_venv: ${venvdir}
${venvdir}: requirements.txt
# test -d ${venvdir} || python3.8 -m venv ${venvdir}
test -d ${venvdir} || python3 -m venv ${venvdir}
${venvdir}/bin/pip install --upgrade pip
${venvdir}/bin/pip install setuptools wheel
${venvdir}/bin/pip install -Ur requirements.txt
touch ${venvdir}/bin/activate
chmod +x ${venvdir}/bin/activate
touch source_me.sh
echo "source ${venvdir}/bin/activate" > source_me.sh
# Clean Python and Emacs backup and cache files
clean:
find . -name '*.pyc' -delete
find . -name '*.yaml' -delete
find . -name '*~' -delete
find . -name '__pycache__' -type d | xargs rm -rf
find . -name '.ipynb_checkpoints' -type d | xargs rm -rf
find . -name '${venvdir}' -type d | xargs rm -rf
find . -name 'source_me.sh' -delete
find . -name 'nosetest_results.txt' -delete
rm -rf dist
rm -rf build