]> code.delx.au - pulseaudio/blob - Makefile.am
module-switch-on-port-available: Use new find best port function
[pulseaudio] / 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 git-version-gen \
23 LICENSE \
24 GPL \
25 LGPL \
26 doxygen/Makefile.am \
27 doxygen/Makefile.in \
28 doxygen/doxygen.conf.in \
29 PROTOCOL \
30 README \
31 todo \
32 shell-completion/pulseaudio-zsh-completion.zsh \
33 .gitignore \
34 doxygen/.gitignore \
35 m4/.gitignore \
36 man/.gitignore \
37 po/.gitignore \
38 src/.gitignore \
39 src/daemon/.gitignore \
40 src/pulse/.gitignore
41
42 SUBDIRS = src doxygen man po
43
44 MAINTAINERCLEANFILES =
45 noinst_DATA =
46
47 vapidir = $(datadir)/vala/vapi
48 dist_vapi_DATA = \
49 vala/libpulse.deps vala/libpulse.vapi \
50 vala/libpulse-mainloop-glib.deps vala/libpulse-mainloop-glib.vapi
51
52 pkgconfigdir = $(libdir)/pkgconfig
53 pkgconfig_DATA = libpulse.pc libpulse-simple.pc
54
55 if HAVE_GLIB20
56 pkgconfig_DATA += \
57 libpulse-mainloop-glib.pc
58 endif
59
60 cmakedir = $(libdir)/cmake/PulseAudio
61 cmake_DATA = PulseAudioConfig.cmake PulseAudioConfigVersion.cmake
62
63 bashcompletiondir=$(sysconfdir)/bash_completion.d
64 dist_bashcompletion_DATA = shell-completion/pulseaudio-bash-completion.sh
65
66 homepage: all dist doxygen
67 test -d $$HOME/homepage/private
68 mkdir -p $$HOME/homepage/private/projects/pulseaudio $$HOME/homepage/private/projects/pulseaudio/doxygen
69 cp pulseaudio-@PACKAGE_VERSION@.tar.gz $$HOME/homepage/private/projects/pulseaudio
70 cp pulseaudio-@PACKAGE_VERSION@.tar.gz $$HOME/git.fedora/pulseaudio
71 cp -a doxygen/html/* $$HOME/homepage/private/projects/pulseaudio/doxygen
72
73 doxygen:
74 $(MAKE) -C doxygen doxygen
75
76 eolspace:
77 find \( -name '*.c' -o -name '*.h' -o -name 'Makefile.am' \) -exec perl -i -pe 's/\s+\n$$/\1\n/;' \{\} \;
78
79 untabify:
80 find \( -name '*.c' -o -name '*.h' \) -exec perl -i -pe 's/\t/ /g;' \{\} \;
81
82 fedora-snapshot: dist
83 cp $(distdir).tar.gz $$HOME/git.fedora/pulseaudio/$(distdir).tar.gz
84
85 dist-hook:
86 echo $(VERSION) > $(distdir)/.tarball-version
87 echo $(VERSION) > $(distdir)/.version
88
89 check-daemon:
90 $(MAKE) -C src check-daemon
91
92 .PHONY: homepage distcleancheck doxygen
93
94 # see git-version-gen
95 BUILT_SOURCES = $(top_srcdir)/.version
96 $(top_srcdir)/.version:
97 echo $(VERSION) > $@-t && mv $@-t $@
98
99 DISTCLEANFILES = \
100 po/.intltool-merge-cache
101
102 DISTCHECK_CONFIGURE_FLAGS = --with-udev-rules-dir="$$dc_install_base/lib/udev/rules.d"