summaryrefslogtreecommitdiff
path: root/Makefile.in
blob: f476f50449f889f93a9c62cde5776f64549ffa4e (plain)
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
55
56
57
58
all:
	ninja -C build

install:
	ninja -C build install

uninstall:
	ninja -C build uninstall

clean:
	ninja -C build clean

run: all
	SPA_PLUGIN_DIR=build/spa/plugins \
	PIPEWIRE_MODULE_DIR=build \
	PIPEWIRE_CONFIG_FILE=build/src/daemon/pipewire.conf \
	$(DBG) ./build/src/daemon/pipewire

gdb:
	$(MAKE) run DBG=gdb

valgrind:
	$(MAKE) run DBG="DISABLE_RTKIT=1 valgrind"

test: all
	ninja -C build test

benchmark: all
	ninja -C build benchmark

monitor: all
	SPA_PLUGIN_DIR=build/spa/plugins \
	PIPEWIRE_MODULE_DIR=build/src/modules/ \
	build/src/tools/pipewire-monitor

cli: all
	SPA_PLUGIN_DIR=build/spa/plugins \
	PIPEWIRE_MODULE_DIR=build/src/modules/ \
	build/src/tools/pipewire-cli

shell: all
	ninja -C build uninstalled

dist: all
	git archive --prefix=pipewire-@VERSION@/ -o pipewire-@VERSION@.tar.gz @TAG@

rpm: dist
	rpmbuild -ta pipewire-@VERSION@.tar.gz

publish: all
	git branch -D gh-pages 2>/dev/null || true && \
	git branch -D draft 2>/dev/null || true && \
	git checkout -b draft && \
	git add -f build/doc/html && \
	git commit -anm "Deploy on gh-pages" && \
	git subtree split --prefix build/doc/html -b gh-pages && \
	git push --force origin gh-pages:gh-pages && \
	git checkout master 2>/dev/null