-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (28 loc) · 832 Bytes
/
Copy pathMakefile
File metadata and controls
34 lines (28 loc) · 832 Bytes
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
.PHONY:
all: build
help:
@echo "Build:"
@echo " make build - Build"
@echo " make clean - Clean build folder"
@echo " make install - Install"
@echo " make uninstall - Uninstall"
build: clean
mkdir -p dist/linux_amd64
go build \
-o dist/linux_amd64/lightshow \
main.go
install:
cp -a dist/linux_amd64/lightshow ${HOME}/.local/bin/lightshow
mkdir -p ${HOME}/.config/systemd/user/
cp -a init/lightshow.service ${HOME}/.config/systemd/user/
systemctl --user daemon-reload
systemctl --user enable lightshow
systemctl --user start lightshow
uninstall:
systemctl --user disable lightshow
systemctl --user stop lightshow
rm -rf ${HOME}/.config/systemd/user/lightshow.service
systemctl --user daemon-reload
rm -f ${HOME}/.local/bin/lightshow
clean: .PHONY
rm -rf dist