Git init
[framework/multimedia/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.vapi
32
33 SUBDIRS = libltdl src doxygen man po
34
35 MAINTAINERCLEANFILES =
36 noinst_DATA =
37
38 vapidir = $(datadir)/vala/vapi
39 vapi_DATA = vala/libpulse.vapi
40
41 pkgconfigdir = $(libdir)/pkgconfig
42 pkgconfig_DATA = libpulse.pc libpulse-simple.pc
43
44 filterdir = /opt/etc/pulse
45 filter_DATA = filter/filter_44100_48000.dat \
46               filter/filter_44100_8000.dat \
47               filter/filter_48000_44100.dat \
48               filter/filter_8000_44100.dat
49
50 if HAVE_AVAHI
51 pkgconfig_DATA += \
52          libpulse-browse.pc
53 endif
54
55 if HAVE_GLIB20
56 pkgconfig_DATA += \
57          libpulse-mainloop-glib.pc
58 endif
59
60 homepage: all dist doxygen
61         test -d $$HOME/homepage/private
62         mkdir -p $$HOME/homepage/private/projects/pulseaudio $$HOME/homepage/private/projects/pulseaudio/doxygen
63         cp pulseaudio-@PACKAGE_VERSION@.tar.gz $$HOME/homepage/private/projects/pulseaudio
64         cp -a doxygen/html/* $$HOME/homepage/private/projects/pulseaudio/doxygen
65
66 doxygen:
67         $(MAKE) -C doxygen doxygen
68
69 eolspace:
70         find \( -name '*.c' -o -name '*.h' -o -name 'Makefile.am' \) -exec perl -i -pe 's/\s+\n$$/\1\n/;' \{\} \;
71
72 untabify:
73         find \( -name '*.c' -o -name '*.h' \) -exec perl -i -pe 's/\t/        /g;' \{\} \;
74
75 fedora-snapshot: dist
76         cp $(distdir).tar.gz $$HOME/cvs.fedora/pulseaudio/devel/$(distdir).tar.gz
77
78 dist-hook:
79         if test -d .git ; then \
80                 test -z $$SKIP_GIT && git pull ; \
81                 chmod u+w ${distdir}/ChangeLog || true ; \
82                 ( git-changelog.perl || echo "git-changelog.perl failed." ) > ${distdir}/ChangeLog 2>&1 ; \
83         fi
84         echo $(VERSION) > $(distdir)/.tarball-version
85
86 .PHONY: homepage distcleancheck doxygen
87
88 # see git-version-gen
89 BUILT_SOURCES = $(top_srcdir)/.version
90 $(top_srcdir)/.version:
91         echo $(VERSION) > $@-t && mv $@-t $@
92
93 DISTCLEANFILES = \
94         po/.intltool-merge-cache