-
-
Notifications
You must be signed in to change notification settings - Fork 219
/
Makefile
54 lines (47 loc) · 1.43 KB
/
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
52
53
54
.PHONY: all armhf arm64 amd64 clean distclean
.DEFAULT_GOAL := all
RASPOTIFY_AUTHOR?=Kim Tore Jensen <kimtjen@gmail.com>
armhf:
docker build -t raspotify .
docker run \
--rm \
--volume "$(CURDIR):/mnt/raspotify" \
--env PERMFIX_UID="$$(id -u)" \
--env PERMFIX_GID="$$(id -g)" \
--env RASPOTIFY_AUTHOR="$(RASPOTIFY_AUTHOR)" \
--env ARCHITECTURE="armhf" \
raspotify /mnt/raspotify/build.sh
arm64:
docker build -t raspotify .
docker run \
--rm \
--volume "$(CURDIR):/mnt/raspotify" \
--env PERMFIX_UID="$$(id -u)" \
--env PERMFIX_GID="$$(id -g)" \
--env RASPOTIFY_AUTHOR="$(RASPOTIFY_AUTHOR)" \
--env ARCHITECTURE="arm64" \
raspotify /mnt/raspotify/build.sh
amd64:
docker build -t raspotify .
docker run \
--rm \
--volume "$(CURDIR):/mnt/raspotify" \
--env PERMFIX_UID="$$(id -u)" \
--env PERMFIX_GID="$$(id -g)" \
--env RASPOTIFY_AUTHOR="$(RASPOTIFY_AUTHOR)" \
--env ARCHITECTURE="amd64" \
raspotify /mnt/raspotify/build.sh
all:
docker build -t raspotify .
docker run \
--rm \
--volume "$(CURDIR):/mnt/raspotify" \
--env PERMFIX_UID="$$(id -u)" \
--env PERMFIX_GID="$$(id -g)" \
--env RASPOTIFY_AUTHOR="$(RASPOTIFY_AUTHOR)" \
--env ARCHITECTURE="all" \
raspotify /mnt/raspotify/build.sh
clean:
rm -rf *.deb librespot asound-conf-wizard raspotify/usr/bin/librespot raspotify/usr/share raspotify/DEBIAN/control apt-repo
distclean: clean
docker rmi -f raspotify || true