File: Makefile

package info (click to toggle)
playerctl 2.4.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 704 kB
  • sloc: ansic: 5,157; python: 1,107; xml: 198; sh: 133; makefile: 62
file content (23 lines) | stat: -rw-r--r-- 537 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
.PHONY: test docker-test format all
.DEFAULT_GOAL := all

FORMAT_C_SOURCE = $(shell find playerctl | grep \.[ch]$)
EXECUTABLES = clang-format python3 docker yapf dbus-run-session
K := $(foreach exec,$(EXECUTABLES),\
        $(if $(shell which $(exec)),some string,$(error "No $(exec) in PATH")))

test:
	dbus-run-session python3 -m pytest -sq

docker-test:
	docker build -t playerctl-test .
	docker run -it playerctl-test

format:
	yapf -rip test examples
	clang-format -i ${FORMAT_C_SOURCE}

lint:
	flake8 test

all: format docker-test