-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
30 lines (21 loc) · 786 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
compile:
go build main.go
mv main cli_subsonic
image:
docker build -t cli_subsonic_client_build_image .
image_musl:
docker build -f Dockerfile.musl -t cli_subsonic_client_build_image .
build: image
docker run --rm -v $(PWD):/app --workdir /app cli_subsonic_client_build_image sh -c './module.sh; make'
build_musl: image_musl
docker run --rm -v $(PWD):/app --workdir /app cli_subsonic_client_build_image sh -c './module.sh; make'
fmt: image
docker run --rm -v $(PWD):/app --workdir /app cli_subsonic_client_build_image sh -c 'gofmt -w -s .'
bash: image
docker run -it --rm -v $(PWD):/app --workdir /app cli_subsonic_client_build_image bash
install: build
sudo cp cli_subsonic /usr/bin/
install_musl: build_musl
sudo cp cli_subsonic /usr/bin
clean:
rm -f cli_subsonic