-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (38 loc) · 1010 Bytes
/
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
all: sync run
NV_ARGS = -d -di -dc -dd -nl
TEST_ARGS = -d -dd -dc -di -dsugar -dio
#sourceFontList = display/ImportedFonts/*.ttf display/ImportedFonts/*.otf
#generatedFontList = $(patsubst display/ImportedFonts/%, %, sourceFontList)
#generatedGoFonts = $(patsubst %.*, %.go, generatedFontList)
go:
sh ./install_go
sync: clean
./sync
build: install_nv
clean:
rm -f nv
nv:
go build
install_nv: nv
if [ "`hostname`" = "pi4" ]; then \
sudo install -m a=rxs -p -o root -g i2c nv /usr/local/bin/ ;\
sudo mkdir -p /var/nv ;\
sudo cp nv.service /etc/systemd/system/ ;\
fi
start: install_nv
sudo systemctl daemon-reload
sudo systemctl enable nv
sudo systemctl restart nv
stop:
sudo systemctl stop nv
run: stop install_nv
nv $(NV_ARGS)
test: stop install_nv
nv $(TEST_ARGS)
debug: sync nv
sudo gdb --args nv $(TEST_ARGS)
fonts: display/fontconvert
if [ -f display/fontconvert/fontconvert2go ]; then \
rm display/fontconvert/fontconvert2go; \
fi
make -C display/fontconvert all