-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
27 lines (21 loc) · 825 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
deploy: venv tables submodules
echo "Finished preparing auto_scraper"
submodules:
git submodule init
git submodule update --recursive
tables:
echo "Create a database user with create and grant permissions before executing this script"
echo "The username should be the same as the current user"
psql auto_scraper -h localhost -f ./auto_scraper/sql/create_tables.sql
psql auto_scraper -h localhost -f ./auto_scraper/sql/poi_dist_func.sql
echo "Make sure to set password to rw_user!"
venv:
( \
virtualenv --python=python2.7 venv; \
. venv/bin/activate; \
pip install -r requirements.txt; \
deactivate; \
)
clean:
rm -rf venv
#sudo apt-get install build-essential autoconf libtool pkg-config python-opengl python-imaging python-pyrex python-pyside.qtopengl idle-python2.7 qt4-dev-tools q$