-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
55 lines (42 loc) · 1.23 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
include core/extension.mk
.PHONY: chrome
indices = extension/index/api.js extension/index/cfn.v2.js extension/index/cli.js
prepare-unlisted:
@printf "unlisted" > hack/jsonnet-fragments/version-suffix
cleanup-unlisted:
@printf "" > hack/jsonnet-fragments/version-suffix
firefox.unlisted: prepare-unlisted firefox cleanup-unlisted
empty-indices: create-index-directory empty-index-api empty-index-cfn empty-index-cli
@echo "Empty indices created (or indices already existed)"
create-index-directory:
@mkdir -p extension/index
empty-index-api:
$(if \
$(wildcard extension/index/api.js), \
, \
echo "var apiSearchIndex={};" > extension/index/api.js \
)
empty-index-cfn:
$(if \
$(wildcard extension/index/cfn.v2.js), \
, \
echo "var cfnV2SearchIndex={};" > extension/index/cfn.v2.js \
)
empty-index-cli:
$(if \
$(wildcard extension/index/cli.js), \
, \
echo "var cliSearchIndex={};" > extension/index/cli.js \
)
indices: $(indices)
extension/index/api.js:
@echo "Generating API index"
hack/generate-index-api.py
extension/index/cfn.v2.js:
@echo "Generating CFN index"
hack/generate-index-cfn.py
extension/index/cli.js:
@echo "Generating CLI index"
hack/generate-index-cli.py
clean-indices:
rm -f extension/index/*.js