fdsem: Remember pa_write() type in pa_fdsem_post()
[platform/upstream/pulseaudio.git] / Makefile.am
1 # This file is part of PulseAudio.
2 #
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.
7 #
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.
12 #
13 # You should have received a copy of the GNU Lesser General Public License
14 # along with PulseAudio; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
16 # USA.
17
18 ACLOCAL_AMFLAGS = -I m4
19
20 EXTRA_DIST = \
21         bootstrap.sh \
22         config.rpath \
23         git-version-gen \
24         LICENSE \
25         GPL \
26         LGPL \
27         doxygen/Makefile.am \
28         doxygen/Makefile.in \
29         doxygen/doxygen.conf.in \
30         PROTOCOL \
31         README \
32         todo \
33         shell-completion/pulseaudio-zsh-completion.zsh \
34         .gitignore \
35         doxygen/.gitignore \
36         m4/.gitignore \
37         man/.gitignore \
38         po/.gitignore \
39         src/.gitignore \
40         src/daemon/.gitignore \
41         src/pulse/.gitignore
42
43 SUBDIRS = src doxygen man po
44
45 MAINTAINERCLEANFILES =
46 noinst_DATA =
47
48 vapidir = $(datadir)/vala/vapi
49 dist_vapi_DATA = \
50                 vala/libpulse.deps vala/libpulse.vapi \
51                 vala/libpulse-mainloop-glib.deps vala/libpulse-mainloop-glib.vapi
52
53 pkgconfigdir = $(libdir)/pkgconfig
54 pkgconfig_DATA = libpulse.pc libpulse-simple.pc
55
56 if HAVE_GLIB20
57 pkgconfig_DATA += \
58          libpulse-mainloop-glib.pc
59 endif
60
61 cmakedir = $(libdir)/cmake/PulseAudio
62 cmake_DATA = PulseAudioConfig.cmake PulseAudioConfigVersion.cmake
63
64 bashcompletiondir=$(sysconfdir)/bash_completion.d
65 dist_bashcompletion_DATA = shell-completion/pulseaudio-bash-completion.sh
66
67 homepage: all dist doxygen
68         test -d $$HOME/homepage/private
69         mkdir -p $$HOME/homepage/private/projects/pulseaudio $$HOME/homepage/private/projects/pulseaudio/doxygen
70         cp pulseaudio-@PACKAGE_VERSION@.tar.gz $$HOME/homepage/private/projects/pulseaudio
71         cp pulseaudio-@PACKAGE_VERSION@.tar.gz $$HOME/git.fedora/pulseaudio
72         cp -a doxygen/html/* $$HOME/homepage/private/projects/pulseaudio/doxygen
73
74 doxygen:
75         $(MAKE) -C doxygen doxygen
76
77 eolspace:
78         find \( -name '*.c' -o -name '*.h' -o -name 'Makefile.am' \) -exec perl -i -pe 's/\s+\n$$/\1\n/;' \{\} \;
79
80 untabify:
81         find \( -name '*.c' -o -name '*.h' \) -exec perl -i -pe 's/\t/        /g;' \{\} \;
82
83 fedora-snapshot: dist
84         cp $(distdir).tar.gz $$HOME/git.fedora/pulseaudio/$(distdir).tar.gz
85
86 dist-hook:
87         echo $(VERSION) > $(distdir)/.tarball-version
88         echo $(VERSION) > $(distdir)/.version
89
90 check-daemon:
91         $(MAKE) -C src check-daemon
92
93 .PHONY: homepage distcleancheck doxygen
94
95 # see git-version-gen
96 BUILT_SOURCES = $(top_srcdir)/.version
97 $(top_srcdir)/.version:
98         echo $(VERSION) > $@-t && mv $@-t $@
99
100 DISTCLEANFILES = \
101         po/.intltool-merge-cache
102
103 DISTCHECK_CONFIGURE_FLAGS = --with-udev-rules-dir="$$dc_install_base/lib/udev/rules.d"