-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
48 lines (36 loc) · 1.4 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
all: fetch gen-image
fetch: output/indexes.bolt
gen-image: output/roadmap.svg output/roadmap.png output/gno.svg output/gno.png output/ecosystem.svg output/ecosystem.png
clean:
rm -f output/*.json
fclean:
rm -rf output/
## Advancedrules
gen-json: output/roadmap.json output/gno.json output/ecosystem.json
gen-dots: output/roadmap.dot output/gno.dot output/ecosystem.dot
gen-wip: output/roadmap-wip.png output/gno-wip.png output/ecosystem-wip.png
DEPVIZ=go run moul.io/depviz/v3/cmd/depviz --store-path=output/
# depviz database, shared between repos
output/indexes.bolt:
$(DEPVIZ) fetch -github-token=${GITHUB_TOKEN} gnolang/roadmap gnolang/gno gnolang/awesome-gno
# per-flavor rules
output/roadmap.json: output/indexes.bolt
$(DEPVIZ) gen -hide-prs -hide-external-deps json gnolang/roadmap > [email protected]
@mv [email protected] $@
output/gno.json: output/indexes.bolt
$(DEPVIZ) gen -show-closed json gnolang/gno > [email protected]
@mv [email protected] $@
output/ecosystem.json: output/indexes.bolt
$(DEPVIZ) gen -hide-prs -hide-isolated json gnolang/gno gnolang/roadmap gnolang/awesome-gno > [email protected]
@mv [email protected] $@
# generic conversions
%.dot: %.json
go run ./gen-graph -i $< -o $@
%.svg: %.dot
dot -Tsvg $< > $@
%.png: %.dot
dot -Tpng $< > $@
%-wip.png: %.png
# depends on ImageMagick or equivalent
wget -qO wip-text.png https://raw.githubusercontent.com/moul/assets/main/wip-text.png
composite -dissolve 20% -gravity center wip-text.png $< $@