forked from emeryberger/CSrankings
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (33 loc) · 1.42 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
TARGETS = csrankings.js generated-author-info.csv homepages.csv
.PHONY: home-pages fix-affiliations
all: $(TARGETS)
clean:
rm $(TARGETS)
csrankings.js: csrankings.ts
@echo "Rebuilding JavaScript code."
tsc --noImplicitAny --noImplicitReturns --forceConsistentCasingInFileNames --noImplicitThis --noUnusedLocals --noUnusedParameters --noFallthroughCasesInSwitch --strictNullChecks --pretty csrankings.ts
update-dblp:
@echo "Downloading from DBLP."
rm -f dblp.xml.gz
wget http://dblp.uni-trier.de/xml/dblp.xml.gz
@echo "Fixing character encodings."
sh ./util/fix-dblp.sh
mv dblp-fixed.xml dblp.xml
@echo "Done."
home-pages: faculty-affiliations.csv
@echo "Rebuilding home pages."
@python util/make-web-pages.py >> homepages.csv
fix-affiliations: faculty-affiliations.csv
@echo "Updating affiliations."
@python util/fix-affiliations.py | sort -k2 -t"," | uniq > /tmp/f1.csv
@echo "name,affiliation" | cat - /tmp/f1.csv > /tmp/f2.csv
@rm /tmp/f1.csv
@mv /tmp/f2.csv faculty-affiliations.csv
#faculty-coauthors.csv: dblp.xml util/generate-faculty-coauthors.py util/csrankings.py
# @echo "Rebuilding the co-author database (faculty-coauthors.csv)."
# python util/generate-faculty-coauthors.py
# @echo "Done."
generated-author-info.csv: faculty-affiliations.csv dblp.xml util/regenerate-data.py util/csrankings.py
@echo "Rebuilding the publication database (generated-author-info.csv)."
pypy util/regenerate-data.py
@echo "Done."