-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
66 lines (46 loc) · 1.7 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Create projects.csv as input!
all: projects.csv projects_pi.csv projects_categories.csv projects_countries_pi.csv gbt-report.html
projects.csv:
echo create projects.csv as input
echo with columns 'tel,legacy_id,proposal_id,hours'
ls projects.csv
projects_pi.csv: projects_distinct.csv projects_collected.csv proposals
./project.py pi > projects_pi.csv
projects_categories.csv: projects_distinct.csv projects_collected.csv proposals
./project.py category > projects_categories.csv
projects_countries_pi.csv: projects_pi.csv
./geo_breakdown.py
projects_distinct.csv: projects.csv
./project.py accumulate > projects_distinct.csv
gbt-report.html: projects.csv proposals.dat in-env template-engine
./in-env ./gbt-report.py > gbt-report.html
proposals.dat: proposals remove_empty
./proposals.py
maps: in-env googlechart projects_pi.csv
./in-env ./geo_breakdown_maps.py
remove_empty: # Removes empty proposal files, matching *_empty.xml.
./remove_empty.sh
proposals: cookie.txt
./project.py get
cookie.txt: recent-cookie
recent-cookie: nraouserdb in-env
./in-env ./set-cookie
nraouserdb: in-env
./in-env easy_install -f 'http://www.cv.nrao.edu/~kgroner/python/#nraouserdb' nraouserdb
touch nraouserdb
template-engine: in-env
./in-env easy_install jinja2
touch template-engine
googlechart: in-env
./in-env easy_install pygooglechart
touch googlechart
in-env: python-env
./build-env-script
python-env: virtualenv.py
python virtualenv.py --no-site-packages --distribute python-env
virtualenv.py:
wget http://bit.ly/virtualenv -O virtualenv.py
clean:
rm -fr python-env virtualenv.py *.egg *.egg-info *.pyc cookie.txt in-env nraouserdb author coversheet
.PHONY: recent-cookie
.SILENT: recent-cookie projects.csv