forked from mjsir911/va_voter_data_map
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (17 loc) · 720 Bytes
/
Makefile
File metadata and controls
25 lines (17 loc) · 720 Bytes
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
VENV = venv
VOPT = --python=python3
scrape: $(VENV)
$(VENV)/bin/python src/metadata_scraper.py
build: requirements phantomjs
#http://blog.bottlepy.org/2012/07/16/virtualenv-and-makefiles.html
$(VENV): $(VENV)/bin/activate
requirements: requirements.txt $(VENV)/bin/activate
$(VENV)/bin/activate: requirements.txt
test -d $(VENV) || virtualenv $(VENV) $(VOPT)
$(VENV)/bin/pip3 install -Ur requirements.txt
touch $(VENV)/bin/activate
phantomjs-2.1.1.tar.bz2:
curl -L -o phantomjs-2.1.1.tar.bz2 https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
phantomjs: phantomjs-2.1.1/bin/phantomjs
phantomjs-2.1.1/bin/phantomjs: phantomjs-2.1.1.tar.bz2
tar -xjf phantomjs-2.1.1.tar.bz2