-
-
Notifications
You must be signed in to change notification settings - Fork 179
/
makefile
58 lines (37 loc) · 1.34 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
.PHONY: publications render devmap clean show server style test cont mirrors
ARGS ?= ""
MIRROR_FILES := scripts/mirror_list scripts/metalink.helper scripts/torrent.helper templates/all-mirrors.html templates/mirrorselector-src.html templates/mirrorselector.html
default: clean render
clean:
- mkdir -p www && cd www && find -P -delete
devmap: templates/devs.html
templates/devs.html: conf/geocode.xml scripts/geocode.py conf/contributors.xml
python scripts/geocode.py
mirrors: $(MIRROR_FILES)
$(MIRROR_FILES): scripts/mirror_manager.py conf/mirrors.yaml
bash scripts/mirror_manager_wrapper.sh
publications:
$(MAKE) -C publications
render: mirrors publications devmap
python render.py $(ARGS)
server:
cd www && python -m SimpleHTTPServer 8181
show:
python -c 'from webbrowser import open; open("http://127.0.0.1:8181/")'
open:
python -c 'from webbrowser import open; open("./www/index.html")'
update:
git checkout master
git pull --ff-only
git submodule foreach "git checkout master; git pull --ff-only origin master"
style:
autopep8 -i -aaa -j -1 --ignore=E501 *.py scripts/*.py conf/*.py
test:
python -m unittest discover
cont:
python cont.py
publish: default
bash publish.sh
pullpub:
cd publications && git pull --ff-only && cd .. && git add publications && git commit -m "update publications" && git push
updpub: pullpub publish