Makefile.am 4.5 KB
Newer Older
Lennart Poettering's avatar
Lennart Poettering committed
1
# This file is part of PulseAudio.
Lennart Poettering's avatar
Lennart Poettering committed
2
#
Lennart Poettering's avatar
Lennart Poettering committed
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
Lennart Poettering's avatar
Lennart Poettering committed
5 6 7
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
Lennart Poettering's avatar
Lennart Poettering committed
8
# PulseAudio is distributed in the hope that it will be useful, but
Lennart Poettering's avatar
Lennart Poettering committed
9 10 11 12
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# 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/>.
Lennart Poettering's avatar
Lennart Poettering committed
15

16
ACLOCAL_AMFLAGS = -I m4
Lennart Poettering's avatar
Lennart Poettering committed
17

18 19
EXTRA_DIST = \
	bootstrap.sh \
20
	coverity/model.c \
21 22
	git-version-gen \
	LICENSE \
23
	pulseaudio.supp \
24 25 26 27 28
	GPL \
	LGPL \
	doxygen/Makefile.am \
	doxygen/Makefile.in \
	doxygen/doxygen.conf.in \
29
	PROTOCOL \
30
	README \
31
	CODE_OF_CONDUCT.md \
32
	scripts/benchmark_memory_usage.sh \
33
	scripts/plot_memory_usage.gp \
34
	scripts/benchmarks/README \
35
	todo \
36 37 38 39 40
	.gitignore \
	doxygen/.gitignore \
	m4/.gitignore \
	man/.gitignore \
	po/.gitignore \
41
	scripts/benchmarks/.gitignore \
42 43
	src/.gitignore \
	src/daemon/.gitignore \
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
	src/pulse/.gitignore \
	meson.build \
	meson_options.txt \
	man/meson.build \
	po/meson.build \
	shell-completion/bash/meson.build \
	shell-completion/zsh/meson.build \
	src/daemon/meson.build \
	src/meson.build \
	src/modules/alsa/meson.build \
	src/modules/alsa/mixer/meson.build \
	src/modules/bluetooth/meson.build \
	src/modules/echo-cancel/meson.build \
	src/modules/gsettings/meson.build \
	src/modules/gsettings/post-install.sh \
	src/modules/meson.build \
	src/modules/oss/meson.build \
	src/modules/raop/meson.build \
	src/modules/rtp/meson.build \
	src/pulsecore/meson.build \
	src/pulse/meson.build \
	src/tests/meson.build \
	src/tests/test-daemon.meson.sh \
	src/utils/meson.build \
	vala/meson.build
69

70
SUBDIRS = src doxygen man po
Lennart Poettering's avatar
Lennart Poettering committed
71

72 73
MAINTAINERCLEANFILES =
noinst_DATA =
Lennart Poettering's avatar
Lennart Poettering committed
74

75
vapidir = $(datadir)/vala/vapi
76
dist_vapi_DATA = \
77
		vala/libpulse.deps vala/libpulse.vapi \
78 79
		vala/libpulse-mainloop-glib.deps vala/libpulse-mainloop-glib.vapi \
		vala/libpulse-simple.deps vala/libpulse-simple.vapi
80

Lennart Poettering's avatar
Lennart Poettering committed
81
pkgconfigdir = $(libdir)/pkgconfig
Lennart Poettering's avatar
Lennart Poettering committed
82 83
pkgconfig_DATA = libpulse.pc libpulse-simple.pc

84 85
if HAVE_GLIB20
pkgconfig_DATA += \
86
	 libpulse-mainloop-glib.pc
87 88
endif

89 90 91
cmakedir = $(libdir)/cmake/PulseAudio
cmake_DATA = PulseAudioConfig.cmake PulseAudioConfigVersion.cmake

92
bashcompletiondir=@bashcompletiondir@
93 94 95
dist_bashcompletion_DATA = shell-completion/bash/pulseaudio

install-bashcompletion-aliases:
96 97 98 99 100 101 102 103
	cd $(DESTDIR)$(bashcompletiondir) && $(LN_S) -f pulseaudio pactl
	cd $(DESTDIR)$(bashcompletiondir) && $(LN_S) -f pulseaudio pacmd
	cd $(DESTDIR)$(bashcompletiondir) && $(LN_S) -f pulseaudio pasuspender
	cd $(DESTDIR)$(bashcompletiondir) && $(LN_S) -f pulseaudio padsp
	cd $(DESTDIR)$(bashcompletiondir) && $(LN_S) -f pulseaudio pacat
	cd $(DESTDIR)$(bashcompletiondir) && $(LN_S) -f pulseaudio paplay
	cd $(DESTDIR)$(bashcompletiondir) && $(LN_S) -f pulseaudio parec
	cd $(DESTDIR)$(bashcompletiondir) && $(LN_S) -f pulseaudio parecord
104 105

install-data-hook: install-bashcompletion-aliases
106

107 108 109
zshcompletiondir=@zshcompletiondir@
dist_zshcompletion_DATA = shell-completion/zsh/_pulseaudio

Lennart Poettering's avatar
Lennart Poettering committed
110
homepage: all dist doxygen
Lennart Poettering's avatar
Lennart Poettering committed
111
	test -d $$HOME/homepage/private
Lennart Poettering's avatar
Lennart Poettering committed
112 113
	mkdir -p $$HOME/homepage/private/projects/pulseaudio $$HOME/homepage/private/projects/pulseaudio/doxygen
	cp pulseaudio-@PACKAGE_VERSION@.tar.gz $$HOME/homepage/private/projects/pulseaudio
114
	cp pulseaudio-@PACKAGE_VERSION@.tar.gz $$HOME/git.fedora/pulseaudio
Lennart Poettering's avatar
Lennart Poettering committed
115
	cp -a doxygen/html/* $$HOME/homepage/private/projects/pulseaudio/doxygen
Lennart Poettering's avatar
Lennart Poettering committed
116

117
doxygen:
118
	$(MAKE) -C doxygen doxygen
119

120 121 122
eolspace:
	find \( -name '*.c' -o -name '*.h' -o -name 'Makefile.am' \) -exec perl -i -pe 's/\s+\n$$/\1\n/;' \{\} \;

123 124 125 126
untabify:
	find \( -name '*.c' -o -name '*.h' \) -exec perl -i -pe 's/\t/        /g;' \{\} \;

fedora-snapshot: dist
127
	cp $(distdir).tar.gz $$HOME/git.fedora/pulseaudio/$(distdir).tar.gz
128

129
dist-hook:
130
	echo $(VERSION) > $(distdir)/.tarball-version
131
	echo $(VERSION) > $(distdir)/.version
132

133 134 135
check-daemon:
	$(MAKE) -C src check-daemon

136 137 138
check-daemon-long:
	$(MAKE) -C src check-daemon-long

139
.PHONY: homepage distcleancheck doxygen
Lennart Poettering's avatar
Lennart Poettering committed
140

141 142 143 144 145
# see git-version-gen
BUILT_SOURCES = $(top_srcdir)/.version
$(top_srcdir)/.version:
	echo $(VERSION) > $@-t && mv $@-t $@

146
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"