-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·126 lines (100 loc) · 2.72 KB
/
Copy pathMakefile
File metadata and controls
executable file
·126 lines (100 loc) · 2.72 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
#!/usr/bin/make -f
include ./VERSION
all: background logo font icons menu slider highlight userpass themetxt livetxt tick center
icons: theme/icons/*.svg
dir:
mkdir -p build/$(CODENAME_SAFE)
iconsdir:
mkdir -p build/$(CODENAME_SAFE)/icons
background: dir
inkscape \
--without-gui \
--export-width=1920 \
--export-height=1080 \
--export-filename="build/$(CODENAME_SAFE)/$@.png" \
svg/$@.svg
# cp -f png/background.png build/$(CODENAME_SAFE)/
logo: dir
inkscape \
--without-gui \
--export-width=196 \
--export-height=38 \
--export-filename="build/$(CODENAME_SAFE)/logo.png" \
svg/logo.svg
# cp -f png/logo.png build/$(CODENAME_SAFE)/
userpass: dir
inkscape \
--without-gui \
--export-filename="build/$(CODENAME_SAFE)/userpass.png" \
theme/userpass.svg
tick: dir
cp -v theme/tick.png build/$(CODENAME_SAFE)
center: dir
cp -v theme/center.png build/$(CODENAME_SAFE)
font: dir
grub-mkfont -s 16 -o build/$(NAME)/u_vga16_16.pf2 template/u_vga16.bdf
slider_n: dir
inkscape \
--without-gui \
--export-area=0:16:32:32 \
--export-filename="build/$(CODENAME_SAFE)/slider_n.png" \
theme/dot_white.svg
slider_c: dir
inkscape \
--without-gui \
--export-area=0:16:32:17 \
--export-filename="build/$(CODENAME_SAFE)/slider_c.png" \
theme/dot_white.svg
slider_s: dir
inkscape \
--without-gui \
--export-area=0:0:32:16 \
--export-filename="build/$(CODENAME_SAFE)/slider_s.png" \
theme/dot_white.svg
slider: slider_n slider_c slider_s
menu_e: dir
inkscape \
--without-gui \
--export-area=16:16:32:17 \
--export-filename="build/$(CODENAME_SAFE)/menu_e.png" \
theme/dot_black.svg
menu_c: dir
inkscape \
--without-gui \
--export-area=16:16:17:17 \
--export-filename="build/$(CODENAME_SAFE)/menu_c.png" \
theme/dot_black.svg
menu: menu_c menu_e
highlight_w: dir
inkscape \
--without-gui \
--export-area=0:0:16:32 \
--export-filename="build/$(CODENAME_SAFE)/highlight_w.png" \
theme/dot_black.svg
highlight_c: dir
inkscape \
--without-gui \
--export-area=16:0:17:32 \
--export-filename="build/$(CODENAME_SAFE)/highlight_c.png" \
theme/dot_black.svg
highlight_e: dir
inkscape \
--without-gui \
--export-area=16:0:32:32 \
--export-filename="build/$(CODENAME_SAFE)/highlight_e.png" \
theme/dot_black.svg
highlight: highlight_w highlight_c highlight_e
theme/icons/*.svg: iconsdir
inkscape \
--without-gui \
--export-width=32 \
--export-height=32 \
--export-filename="$(patsubst theme/icons/%.svg,build/$(CODENAME_SAFE)/icons/%.png,$@)" \
$@
themetxt:
cp -v theme/theme.txt build/$(CODENAME_SAFE)
livetxt:
cp -a build/$(CODENAME_SAFE) build/$(CODENAME_SAFE)-live
cp -v theme/theme-live.txt build/$(CODENAME_SAFE)-live/theme.txt
clean:
$(RM) -r build