1 # This file is part of PulseAudio.
3 # PulseAudio is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU Lesser General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
8 # PulseAudio is distributed in the hope that it will be useful, but
9 # WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 # General Public License for more details.
13 # You should have received a copy of the GNU Lesser General Public License
14 # along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.
16 ACLOCAL_AMFLAGS = -I m4
22 .gitlab/issue_templates/Bug.md \
30 doxygen/doxygen.conf.in \
34 scripts/benchmark_memory_usage.sh \
35 scripts/plot_memory_usage.gp \
36 scripts/benchmarks/README \
43 scripts/benchmarks/.gitignore \
45 src/daemon/.gitignore \
46 src/pulse/.gitignore \
52 shell-completion/bash/meson.build \
53 shell-completion/zsh/meson.build \
54 src/daemon/meson.build \
56 src/modules/alsa/meson.build \
57 src/modules/alsa/mixer/meson.build \
58 src/modules/bluetooth/meson.build \
59 src/modules/echo-cancel/meson.build \
60 src/modules/gsettings/meson.build \
61 src/modules/gsettings/meson_post_install.py \
62 src/modules/meson.build \
63 src/modules/oss/meson.build \
64 src/modules/raop/meson.build \
65 src/modules/rtp/meson.build \
66 src/pulsecore/meson.build \
67 src/pulse/meson.build \
68 src/tests/meson.build \
69 src/tests/test-daemon.meson.sh \
70 src/utils/meson.build \
73 SUBDIRS = src doxygen man po
75 MAINTAINERCLEANFILES =
78 vapidir = $(datadir)/vala/vapi
80 vala/libpulse.deps vala/libpulse.vapi \
81 vala/libpulse-mainloop-glib.deps vala/libpulse-mainloop-glib.vapi \
82 vala/libpulse-simple.deps vala/libpulse-simple.vapi
84 pkgconfigdir = $(libdir)/pkgconfig
85 pkgconfig_DATA = libpulse.pc libpulse-simple.pc
89 libpulse-mainloop-glib.pc
92 cmakedir = $(libdir)/cmake/PulseAudio
93 cmake_DATA = PulseAudioConfig.cmake PulseAudioConfigVersion.cmake
95 bashcompletiondir=@bashcompletiondir@
96 dist_bashcompletion_DATA = shell-completion/bash/pulseaudio
98 install-bashcompletion-aliases:
99 cd $(DESTDIR)$(bashcompletiondir) && $(LN_S) -f pulseaudio pactl
100 cd $(DESTDIR)$(bashcompletiondir) && $(LN_S) -f pulseaudio pacmd
101 cd $(DESTDIR)$(bashcompletiondir) && $(LN_S) -f pulseaudio pasuspender
102 cd $(DESTDIR)$(bashcompletiondir) && $(LN_S) -f pulseaudio padsp
103 cd $(DESTDIR)$(bashcompletiondir) && $(LN_S) -f pulseaudio pacat
104 cd $(DESTDIR)$(bashcompletiondir) && $(LN_S) -f pulseaudio paplay
105 cd $(DESTDIR)$(bashcompletiondir) && $(LN_S) -f pulseaudio parec
106 cd $(DESTDIR)$(bashcompletiondir) && $(LN_S) -f pulseaudio parecord
108 install-data-hook: install-bashcompletion-aliases
110 zshcompletiondir=@zshcompletiondir@
111 dist_zshcompletion_DATA = shell-completion/zsh/_pulseaudio
113 homepage: all dist doxygen
114 test -d $$HOME/homepage/private
115 mkdir -p $$HOME/homepage/private/projects/pulseaudio $$HOME/homepage/private/projects/pulseaudio/doxygen
116 cp pulseaudio-@PACKAGE_VERSION@.tar.gz $$HOME/homepage/private/projects/pulseaudio
117 cp pulseaudio-@PACKAGE_VERSION@.tar.gz $$HOME/git.fedora/pulseaudio
118 cp -a doxygen/html/* $$HOME/homepage/private/projects/pulseaudio/doxygen
121 $(MAKE) -C doxygen doxygen
124 find \( -name '*.c' -o -name '*.h' -o -name 'Makefile.am' \) -exec perl -i -pe 's/\s+\n$$/\1\n/;' \{\} \;
127 find \( -name '*.c' -o -name '*.h' \) -exec perl -i -pe 's/\t/ /g;' \{\} \;
129 fedora-snapshot: dist
130 cp $(distdir).tar.gz $$HOME/git.fedora/pulseaudio/$(distdir).tar.gz
133 echo $(VERSION) > $(distdir)/.tarball-version
134 echo $(VERSION) > $(distdir)/.version
137 $(MAKE) -C src check-daemon
140 $(MAKE) -C src check-daemon-long
142 .PHONY: homepage distcleancheck doxygen
144 # see git-version-gen
145 BUILT_SOURCES = $(top_srcdir)/.version
146 $(top_srcdir)/.version:
147 echo $(VERSION) > $@-t && mv $@-t $@
149 DISTCHECK_CONFIGURE_FLAGS = --with-udev-rules-dir="$$dc_install_base/lib/udev/rules.d" --with-systemduserunitdir="$$dc_install_base/lib/systemd/user" --with-bash-completion-dir="$$dc_install_base/share/bash-completion/completions"