-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
137 lines (117 loc) · 5.11 KB
/
Makefile
File metadata and controls
137 lines (117 loc) · 5.11 KB
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
nonSdfFolder = "docs/sprite-non-sdf"
sdfFolder = "docs/sprite"
iconFolder = "assets/maki-icons"
.PHONY: help clean clean style build-voyager build-aerial sprite voyager aerial
help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " build to build styles and sprites"
@echo " clean to clean build folder"
@echo " style to build style files"
@echo " build-voyager to build only voyager style"
@echo " build-aerial to build only aerial style"
@echo " build-dark to build only dark style"
@echo " build-positron to build only positron style"
@echo " build-unmap to build only UN Streets map style"
@echo " sprite to build only sprite"
@echo " voyager to develop voyager style YAML"
@echo " aerial to develop aerial style YAML"
@echo " dark to develop dark style YAML"
@echo " positron to develop positron style YAML"
@echo " unmap to develop UN Streets map style YAML"
build: clean style sprite
clean:
@echo
@echo "------------------------------------------------------------------"
@echo "Cleaning build folder"
@echo "------------------------------------------------------------------"
rm -rf docs
style: build-voyager build-aerial build-dark build-positron build-blank build-unmap
build-voyager:
@echo
@echo "------------------------------------------------------------------"
@echo "Building voyager style"
@echo "------------------------------------------------------------------"
mkdir -p docs
pnpm charites build assets/style.yml docs/style.json
build-aerial:
@echo
@echo "------------------------------------------------------------------"
@echo "Building aerial style"
@echo "------------------------------------------------------------------"
mkdir -p docs
pnpm charites build assets/aerialstyle.yml docs/aerialstyle.json
build-dark:
@echo
@echo "------------------------------------------------------------------"
@echo "Building dark style"
@echo "------------------------------------------------------------------"
mkdir -p docs
pnpm charites build assets/dark.yml docs/dark.json
build-positron:
@echo
@echo "------------------------------------------------------------------"
@echo "Building positron style"
@echo "------------------------------------------------------------------"
mkdir -p docs
pnpm charites build assets/positron.yml docs/positron.json
build-blank:
@echo
@echo "------------------------------------------------------------------"
@echo "Building blank style"
@echo "------------------------------------------------------------------"
mkdir -p docs
pnpm charites build assets/blank.yml docs/blank.json
build-unmap:
@echo
@echo "------------------------------------------------------------------"
@echo "Building UN Streets style"
@echo "------------------------------------------------------------------"
mkdir -p docs
pnpm charites build assets/un_street_map.yml docs/un_street_map.json
sprite:
@echo
@echo "------------------------------------------------------------------"
@echo "Building sprites"
@echo "------------------------------------------------------------------"
rm -rf $(nonSdfFolder)
mkdir -p $(nonSdfFolder)
pnpm sprite-one $(nonSdfFolder)/sprite --icon $(iconFolder) --ratio=1 --ratio=2 --ratio=4
rm -rf $(sdfFolder)
mkdir -p $(sdfFolder)
pnpm sprite-one $(sdfFolder)/sprite --icon $(iconFolder) --ratio=1 --ratio=2 --ratio=4 --sdf
voyager:
@echo
@echo "------------------------------------------------------------------"
@echo "Launching a local server to edit Voyager style"
@echo "------------------------------------------------------------------"
pnpm charites serve assets/style.yml --sprite-input $(iconFolder) --sdf
aerial:
@echo
@echo "------------------------------------------------------------------"
@echo "Launching a local server to edit Aerial style"
@echo "------------------------------------------------------------------"
pnpm charites serve assets/aerialstyle.yml --sprite-input $(iconFolder) --sdf
dark:
@echo
@echo "------------------------------------------------------------------"
@echo "Launching a local server to edit Dark style"
@echo "------------------------------------------------------------------"
pnpm charites serve assets/dark.yml --sprite-input $(iconFolder) --sdf
positron:
@echo
@echo "------------------------------------------------------------------"
@echo "Launching a local server to edit Positron style"
@echo "------------------------------------------------------------------"
pnpm charites serve assets/positron.yml --sprite-input $(iconFolder) --sdf
blank:
@echo
@echo "------------------------------------------------------------------"
@echo "Launching a local server to edit Blank style"
@echo "------------------------------------------------------------------"
pnpm charites serve assets/blank.yml --sprite-input $(iconFolder) --sdf
unmap:
@echo
@echo "------------------------------------------------------------------"
@echo "Launching a local server to edit UN Street style"
@echo "------------------------------------------------------------------"
pnpm charites serve assets/un_street_map.yml