-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (29 loc) · 749 Bytes
/
Makefile
File metadata and controls
33 lines (29 loc) · 749 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
CMD ?= "./clay/app.py"
# Build Clay Docker image
build:
echo $(shell id -u)
docker build -t clay --build-arg HOST_USER=${USER} --build-arg HOST_UID=$(shell id -u) .
# Run Clay Docker image
run: | build
docker run -it \
--rm \
--name clay \
-v ${HOME}/.config/clay:/home/${USER}/.config/clay \
-v /dev/shm:/dev/shm \
-v /etc/machine-id:/etc/machine-id \
-v /run/user/${UID}/pulse:/run/user/${UID}/pulse \
-v /var/lib/dbus:/var/lib/dbus \
-v ${HOME}/.pulse:/home/${USER}/.pulse \
-v ${HOME}/.config/pulse:/home/${USER}/.config/pulse \
--tty \
-u ${USER} \
clay \
${CMD}
# Generate Sphinx docs
.PHONY: docs
docs:
make -C docs html
# Run pylint & radon
check:
pylint clay --ignore-imports=y
radon cc -a -s -nC -e clay/vlc.py clay