Merge dead branch 'prepare-0.9.10'
[profile/ivi/pulseaudio-panda.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 if BUILD_MANPAGES
21
22 man_MANS = \
23         pulseaudio.1 \
24         esdcompat.1 \
25         pax11publish.1 \
26         paplay.1 \
27         pacat.1 \
28         pacmd.1 \
29         pactl.1 \
30         pasuspender.1 \
31         padsp.1 \
32         pabrowse.1 \
33         pulse-daemon.conf.5 \
34         pulse-client.conf.5 \
35         default.pa.5
36
37 noinst_DATA = \
38         pulseaudio.1.xml \
39         esdcompat.1.xml \
40         pax11publish.1.xml \
41         paplay.1.xml \
42         pacat.1.xml \
43         pacmd.1.xml \
44         pactl.1.xml \
45         pasuspender.1.xml \
46         padsp.1.xml \
47         pabrowse.1.xml \
48         pulse-daemon.conf.5.xml \
49         pulse-client.conf.5.xml \
50         default.pa.5.xml
51
52 CLEANFILES = \
53         $(noinst_DATA)
54
55 pulseaudio.1.xml: pulseaudio.1.xml.in Makefile
56         sed -e 's,@pulseconfdir\@,$(pulseconfdir),g' \
57             -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
58             -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
59
60 esdcompat.1.xml: esdcompat.1.xml.in Makefile
61         sed -e 's,@pulseconfdir\@,$(pulseconfdir),g' \
62             -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
63             -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
64
65 pax11publish.1.xml: pax11publish.1.xml.in Makefile
66         sed -e 's,@pulseconfdir\@,$(pulseconfdir),g' \
67             -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
68             -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
69
70 paplay.1.xml: paplay.1.xml.in Makefile
71         sed -e 's,@pulseconfdir\@,$(pulseconfdir),g' \
72             -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
73             -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
74
75 pacat.1.xml: pacat.1.xml.in Makefile
76         sed -e 's,@pulseconfdir\@,$(pulseconfdir),g' \
77             -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
78             -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
79
80 pacmd.1.xml: pacmd.1.xml.in Makefile
81         sed -e 's,@pulseconfdir\@,$(pulseconfdir),g' \
82             -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
83             -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
84
85 pactl.1.xml: pactl.1.xml.in Makefile
86         sed -e 's,@pulseconfdir\@,$(pulseconfdir),g' \
87             -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
88             -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
89
90 pasuspender.1.xml: pasuspender.1.xml.in Makefile
91         sed -e 's,@pulseconfdir\@,$(pulseconfdir),g' \
92             -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
93             -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
94
95 padsp.1.xml: padsp.1.xml.in Makefile
96         sed -e 's,@pulseconfdir\@,$(pulseconfdir),g' \
97             -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
98             -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
99
100 pabrowse.1.xml: pabrowse.1.xml.in Makefile
101         sed -e 's,@pulseconfdir\@,$(pulseconfdir),g' \
102             -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
103             -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
104
105 pulse-daemon.conf.5.xml: pulse-daemon.conf.5.xml.in Makefile
106         sed -e 's,@pulseconfdir\@,$(pulseconfdir),g' \
107             -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
108             -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
109
110 pulse-client.conf.5.xml: pulse-client.conf.5.xml.in Makefile
111         sed -e 's,@pulseconfdir\@,$(pulseconfdir),g' \
112             -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
113             -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
114
115 default.pa.5.xml: default.pa.5.xml.in Makefile
116         sed -e 's,@pulseconfdir\@,$(pulseconfdir),g' \
117             -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
118             -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
119
120 if USE_XMLTOMAN
121
122 CLEANFILES += \
123         $(man_MANS)
124
125 pulseaudio.1: pulseaudio.1.xml Makefile
126         xmltoman $< > $@ || rm -f $@
127
128 esdcompat.1: esdcompat.1.xml Makefile
129         xmltoman $< > $@ || rm -f $@
130
131 pax11publish.1: pax11publish.1.xml Makefile
132         xmltoman $< > $@ || rm -f $@
133
134 paplay.1: paplay.1.xml Makefile
135         xmltoman $< > $@ || rm -f $@
136
137 pacat.1: pacat.1.xml Makefile
138         xmltoman $< > $@ || rm -f $@
139
140 pacmd.1: pacmd.1.xml Makefile
141         xmltoman $< > $@ || rm -f $@
142
143 pactl.1: pactl.1.xml Makefile
144         xmltoman $< > $@ || rm -f $@
145
146 pasuspender.1: pasuspender.1.xml Makefile
147         xmltoman $< > $@ || rm -f $@
148
149 padsp.1: padsp.1.xml Makefile
150         xmltoman $< > $@ || rm -f $@
151
152 pabrowse.1: pabrowse.1.xml Makefile
153         xmltoman $< > $@ || rm -f $@
154
155 pulse-daemon.conf.5: pulse-daemon.conf.5.xml Makefile
156         xmltoman $< > $@ || rm -f $@
157
158 pulse-client.conf.5: pulse-client.conf.5.xml Makefile
159         xmltoman $< > $@ || rm -f $@
160
161 default.pa.5: default.pa.5.xml Makefile
162         xmltoman $< > $@ || rm -f $@
163
164 xmllint: $(noinst_DATA)
165         for f in $(noinst_DATA) ; do \
166                         xmllint --noout --valid "$$f" || exit 1 ; \
167         done
168
169 endif
170
171 endif
172
173 EXTRA_DIST = \
174         $(man_MANS) \
175         pulseaudio.1.xml.in \
176         esdcompat.1.xml.in \
177         pax11publish.1.xml.in \
178         paplay.1.xml.in \
179         pacat.1.xml.in \
180         pacmd.1.xml.in \
181         pactl.1.xml.in \
182         pasuspender.1.xml.in \
183         padsp.1.xml.in \
184         pabrowse.1.xml.in \
185         pulse-daemon.conf.5.xml.in \
186         pulse-client.conf.5.xml.in \
187         default.pa.5.xml.in \
188         xmltoman.css \
189         xmltoman.xsl \
190         xmltoman.dtd