Git init
[framework/multimedia/pulseaudio.git] / man / 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 pulseconfdir=$(sysconfdir)/pulse
19
20 CLEANFILES = \
21         $(noinst_DATA)
22
23 noinst_DATA = \
24         pulseaudio.1.xml \
25         esdcompat.1.xml \
26         pax11publish.1.xml \
27         paplay.1.xml \
28         pacat.1.xml \
29         pacmd.1.xml \
30         pactl.1.xml \
31         pasuspender.1.xml \
32         padsp.1.xml \
33         pabrowse.1.xml \
34         pulse-daemon.conf.5.xml \
35         pulse-client.conf.5.xml \
36         default.pa.5.xml
37
38 %.xml: %.xml.in Makefile
39         sed -e 's,@pulseconfdir\@,$(pulseconfdir),g' \
40             -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
41             -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
42
43 xmllint: $(noinst_DATA)
44         for f in $(noinst_DATA) ; do \
45                         xmllint --noout --valid "$$f" || exit 1 ; \
46         done
47
48 if BUILD_MANPAGES
49
50 dist_man_MANS = \
51         pulseaudio.1 \
52         esdcompat.1 \
53         pax11publish.1 \
54         paplay.1 \
55         pacat.1 \
56         pacmd.1 \
57         pactl.1 \
58         pasuspender.1 \
59         padsp.1 \
60         pabrowse.1 \
61         pulse-daemon.conf.5 \
62         pulse-client.conf.5 \
63         default.pa.5
64
65 CLEANFILES += \
66         $(dist_man_MANS)
67
68 %: %.xml Makefile
69         perl $(srcdir)/xmltoman $< > $@ || rm -f $@
70
71 endif
72
73 EXTRA_DIST = \
74         pulseaudio.1.xml.in \
75         esdcompat.1.xml.in \
76         pax11publish.1.xml.in \
77         paplay.1.xml.in \
78         pacat.1.xml.in \
79         pacmd.1.xml.in \
80         pactl.1.xml.in \
81         pasuspender.1.xml.in \
82         padsp.1.xml.in \
83         pabrowse.1.xml.in \
84         pulse-daemon.conf.5.xml.in \
85         pulse-client.conf.5.xml.in \
86         default.pa.5.xml.in \
87         xmltoman \
88         xmltoman.css \
89         xmltoman.xsl \
90         xmltoman.dtd