-
Notifications
You must be signed in to change notification settings - Fork 66
/
Makefile
101 lines (91 loc) · 2.17 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
specs = \
keycloak/22.0.0.json \
keycloak/22.0.1.json \
keycloak/22.0.2.json \
keycloak/22.0.3.json \
keycloak/22.0.4.json \
keycloak/22.0.5.json \
keycloak/23.0.0.json \
keycloak/23.0.1.json \
keycloak/23.0.2.json \
keycloak/23.0.3.json \
keycloak/23.0.4.json \
keycloak/23.0.5.json \
keycloak/23.0.6.json \
keycloak/23.0.7.json \
yamls = \
keycloak/5.0.yml \
keycloak/6.0.yml \
keycloak/7.0.yml \
keycloak/8.0.yml \
keycloak/9.0.yml \
keycloak/10.0.yml \
keycloak/11.0.yml \
keycloak/12.0.yml \
keycloak/12.0-patched.yml \
keycloak/13.0.yml \
keycloak/13.0-patched.yml \
keycloak/14.0.yml \
keycloak/15.0.yml \
keycloak/15.1.yml \
keycloak/16.0.yml \
keycloak/16.1.yml \
keycloak/17.0.yml \
keycloak/18.0.yml \
keycloak/19.0.0.yml \
keycloak/20.0.0.yml \
keycloak/20.0.1.yml \
keycloak/20.0.2.yml \
keycloak/20.0.3.yml \
keycloak/21.0.0.yml \
keycloak/21.0.1.yml \
keycloak/21.0.2.yml \
keycloak/21.1.0.yml \
keycloak/21.1.1.yml \
keycloak/21.1.2.yml \
keycloak/22.0.0.yml \
keycloak/22.0.1.yml \
keycloak/22.0.2.yml \
keycloak/22.0.3.yml \
keycloak/22.0.4.yml \
keycloak/22.0.5.yml \
keycloak/23.0.0.yml \
keycloak/23.0.1.yml \
keycloak/23.0.2.yml \
keycloak/23.0.3.yml \
keycloak/23.0.4.yml \
keycloak/23.0.5.yml \
keycloak/23.0.6.yml \
keycloak/23.0.7.yml \
html = \
keycloak/22.0.0.html \
keycloak/22.0.1.html \
keycloak/22.0.2.html \
keycloak/22.0.3.html \
keycloak/22.0.4.html \
keycloak/22.0.5.html \
keycloak/23.0.0.html \
keycloak/23.0.1.html \
keycloak/23.0.2.html \
keycloak/23.0.3.html \
keycloak/23.0.4.html \
keycloak/23.0.5.html \
keycloak/23.0.6.html \
keycloak/23.0.7.html \
.PHONY : all
all : keycloak/LICENSE.txt $(specs) $(yamls)
.PHONY : clean
clean :
rm -f $(specs) $(html) keycloak/LICENSE.txt $(yamls)
.PHONY : cleanAll
cleanAll : clean
git clean -fXd
.SECONDARY: $(html)
keycloak/LICENSE.txt:
curl https://raw.githubusercontent.com/keycloak/keycloak/master/LICENSE.txt > $@
keycloak/%.html:
curl "https://www.keycloak.org/docs-api/$(basename $(notdir $@))/rest-api/index.html" > $@
keycloak/%.json: keycloak/%.html
(cd keycloak-openapi-transformer; cargo run --release) < $(addsuffix .html,$(basename $@)) > $@
keycloak/%.yml: keycloak/%.json
yq --output-format=yaml -P '.' $< > $@