summaryrefslogtreecommitdiff
path: root/Makefile.in
blob: 229b0d47c680310166ee455cc7d05af2c542c6af (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
59
60
61
all:
	ninja -C @BUILD_ROOT@

install:
	ninja -C @BUILD_ROOT@ install

uninstall:
	ninja -C @BUILD_ROOT@ uninstall

clean:
	ninja -C @BUILD_ROOT@ clean

run: all
	SPA_PLUGIN_DIR=@BUILD_ROOT@/spa/plugins \
	PIPEWIRE_MODULE_DIR=@BUILD_ROOT@ \
	PATH=@BUILD_ROOT@/src/examples:$(PATH) \
	PIPEWIRE_CONFIG_FILE=@BUILD_ROOT@/src/daemon/pipewire-uninstalled.conf \
	ACP_PATHS_DIR=spa/plugins/alsa/mixer/paths \
	ACP_PROFILES_DIR=spa/plugins/alsa/mixer/profile-sets \
	$(DBG) @BUILD_ROOT@/src/daemon/pipewire

gdb:
	$(MAKE) run DBG=gdb

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

test: all
	ninja -C @BUILD_ROOT@ test

benchmark: all
	ninja -C @BUILD_ROOT@ benchmark

monitor: all
	SPA_PLUGIN_DIR=@BUILD_ROOT@/spa/plugins \
	PIPEWIRE_MODULE_DIR=@BUILD_ROOT@/src/modules/ \
	@BUILD_ROOT@/src/tools/pw-mon

cli: all
	SPA_PLUGIN_DIR=@BUILD_ROOT@/spa/plugins \
	PIPEWIRE_MODULE_DIR=@BUILD_ROOT@/src/modules/ \
	@BUILD_ROOT@/src/tools/pw-cli

shell: all
	ninja -C @BUILD_ROOT@ pw-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_ROOT@/doc/html && \
	git commit -anm "Deploy on gh-pages" && \
	git subtree split --prefix @BUILD_ROOT@/doc/html -b gh-pages && \
	git push --force origin gh-pages:gh-pages && \
	git checkout work 2>/dev/null