build: Add .gitignore files to EXTRA_DIST.
[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         git-version-gen \
23         LICENSE \
24         GPL \
25         LGPL \
26         doxygen/Makefile.am \
27         doxygen/Makefile.in \
28         doxygen/doxygen.conf.in \
29         README \
30         todo \
31         vala/libpulse.deps \
32         vala/libpulse.vapi \
33         vala/libpulse-mainloop-glib.deps \
34         vala/libpulse-mainloop-glib.vapi \
35         .gitignore \
36         doxygen/.gitignore \
37         m4/.gitignore \
38         man/.gitignore \
39         po/.gitignore \
40         src/.gitignore \
41         src/daemon/.gitignore \
42         src/pulse/.gitignore
43
44 SUBDIRS = src doxygen man po
45
46 MAINTAINERCLEANFILES =
47 noinst_DATA =
48
49 vapidir = $(datadir)/vala/vapi
50 vapi_DATA = \
51                 vala/libpulse.deps vala/libpulse.vapi \
52                 vala/libpulse-mainloop-glib.deps vala/libpulse-mainloop-glib.vapi
53
54 pkgconfigdir = $(libdir)/pkgconfig
55 pkgconfig_DATA = libpulse.pc libpulse-simple.pc
56
57 if HAVE_GLIB20
58 pkgconfig_DATA += \
59          libpulse-mainloop-glib.pc
60 endif
61
62 cmakedir = $(libdir)/cmake/PulseAudio
63 cmake_DATA = PulseAudioConfig.cmake PulseAudioConfigVersion.cmake
64
65 homepage: all dist doxygen
66         test -d $$HOME/homepage/private
67         mkdir -p $$HOME/homepage/private/projects/pulseaudio $$HOME/homepage/private/projects/pulseaudio/doxygen
68         cp pulseaudio-@PACKAGE_VERSION@.tar.gz $$HOME/homepage/private/projects/pulseaudio
69         cp pulseaudio-@PACKAGE_VERSION@.tar.gz $$HOME/git.fedora/pulseaudio
70         cp -a doxygen/html/* $$HOME/homepage/private/projects/pulseaudio/doxygen
71
72 doxygen:
73         $(MAKE) -C doxygen doxygen
74
75 eolspace:
76         find \( -name '*.c' -o -name '*.h' -o -name 'Makefile.am' \) -exec perl -i -pe 's/\s+\n$$/\1\n/;' \{\} \;
77
78 untabify:
79         find \( -name '*.c' -o -name '*.h' \) -exec perl -i -pe 's/\t/        /g;' \{\} \;
80
81 fedora-snapshot: dist
82         cp $(distdir).tar.gz $$HOME/git.fedora/pulseaudio/$(distdir).tar.gz
83
84 dist-hook:
85         if test -d .git ; then \
86                 test -z $$USE_GIT || git pull ; \
87                 test -f ${distdir}/ChangeLog && chmod u+w ${distdir}/ChangeLog ; \
88                 ( git-changelog.perl || echo "git-changelog.perl failed." ) > ${distdir}/ChangeLog 2>&1 ; \
89         fi
90         echo $(VERSION) > $(distdir)/.tarball-version
91         echo $(VERSION) > $(distdir)/.version
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"