]> code.delx.au - pulseaudio/blob - Makefile.am
build: introduce $SKIP_GIT for make dist (off-line or behind a proxy).
[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 = bootstrap.sh LICENSE GPL LGPL doxygen/Makefile.am doxygen/Makefile.in doxygen/doxygen.conf.in README todo
21 SUBDIRS = libltdl src doxygen man po
22
23 MAINTAINERCLEANFILES =
24 noinst_DATA =
25
26 pkgconfigdir = $(libdir)/pkgconfig
27 pkgconfig_DATA = libpulse.pc libpulse-simple.pc
28
29 if HAVE_AVAHI
30 pkgconfig_DATA += \
31 libpulse-browse.pc
32 endif
33
34 if HAVE_GLIB20
35 pkgconfig_DATA += \
36 libpulse-mainloop-glib.pc
37 endif
38
39 homepage: all dist doxygen
40 test -d $$HOME/homepage/private
41 mkdir -p $$HOME/homepage/private/projects/pulseaudio $$HOME/homepage/private/projects/pulseaudio/doxygen
42 cp pulseaudio-@PACKAGE_VERSION@.tar.gz $$HOME/homepage/private/projects/pulseaudio
43 cp -a doxygen/html/* $$HOME/homepage/private/projects/pulseaudio/doxygen
44
45 doxygen:
46 $(MAKE) -C doxygen doxygen
47
48 eolspace:
49 find \( -name '*.c' -o -name '*.h' -o -name 'Makefile.am' \) -exec perl -i -pe 's/\s+\n$$/\1\n/;' \{\} \;
50
51 untabify:
52 find \( -name '*.c' -o -name '*.h' \) -exec perl -i -pe 's/\t/ /g;' \{\} \;
53
54 fedora-snapshot: dist
55 cp $(distdir).tar.gz $$HOME/cvs.fedora/pulseaudio/devel/$(distdir).git`date +%Y%m%d`.tar.gz
56
57 dist-hook:
58 if test -d .git ; then \
59 test -z $$SKIP_GIT && git pull ; \
60 chmod u+w ${distdir}/ChangeLog || true ; \
61 ( git-changelog.perl || echo "git-changelog.perl failed." ) > ${distdir}/ChangeLog 2>&1 ; \
62 fi
63
64 .PHONY: homepage distcleancheck doxygen
65
66 DISTCLEANFILES = \
67 po/.intltool-merge-cache