This repository has been archived by the owner on Oct 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
/
Makefile
83 lines (58 loc) · 2.14 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
THEMES=dark light
default: css static/cache/clientdata.json cache/OsmiumCache_top_kills static/cache/sitemap-root.xml.gz
css: $(addprefix static/, $(addsuffix .css, $(THEMES))) static/fatal.css static/svgl.css
static/fatal.css: src/sass/fatal.scss
sass --unix-newlines -t compressed $< | tr -s '\n' > $@
static/svgl.css: src/sass/svgl.scss
sass --unix-newlines -t compressed $< | tr -s '\n' > $@
static/%.css: src/sass/themes/%.scss src/sass/*.scss
sass --unix-newlines -t compressed $< | tr -s '\n' > $@
static/cache/clientdata.json:
./bin/make_static_client_data
static/cache/sitemap-root.xml.gz:
./bin/make_sitemap
cache/OsmiumCache_top_kills:
./bin/cache_top_kills
tests:
@$(MAKE) -s clear-harmless-cache
phpunit --exclude-group expensive,database
db-tests:
@$(MAKE) -s clear-harmless-cache
phpunit --group database
all-tests:
@$(MAKE) -s clear-harmless-cache
phpunit
test-coverage:
@$(MAKE) -s clear-harmless-cache
phpunit --coverage-html tests/coverage
tags:
ctags -e -R .
clear-harmless-cache:
find ./cache -maxdepth 1 -type f -not \( -name ".empty_file" -or -name "API_*" -or -name "sess_*" \) -delete
find ./static/cache -maxdepth 1 \( -type f -or -type l \) -and -not -name ".empty_file" -delete
$(MAKE)
clear-api-cache:
find ./cache -name "API_*" -delete
clear-sessions:
find ./cache -name "sess_*" -delete
post-eve-schema-update: reindex-loadouts
update-eveapis:
./bin/parallelize 16 ./bin/update_eveapis
update-affiliations:
./bin/parallelize 4 ./bin/update_affiliations
reverify-accounts:
./bin/parallelize 16 ./bin/reverify_accounts
reindex-loadouts:
./bin/truncate_loadout_index
./bin/parallelize 8 ./bin/reindex_loadouts
reformat-deltas:
./bin/truncate osmium.fittingdeltas
./bin/parallelize 8 ./bin/reformat_deltas
reformat-editable-formatted-contents:
./bin/parallelize 8 ./bin/reformat_editable_formatted_contents
update-average-prices:
./bin/parallelize 4 ./bin/fetch_evecentral_prices
.PHONY: default tags tests db-tests all-tests test-coverage \
clear-harmless-cache clear-api-cache clear-sessions themes \
staticcache post-eve-schema-update reindex-loadouts reformat-deltas \
reformat-editable-formatted-contents