]> code.delx.au - pulseaudio/blob - man/Makefile.am
if building a man page fails remove the output to make sure that calling make repeate...
[pulseaudio] / man / Makefile.am
1 # $Id$
2 #
3 # This file is part of PulseAudio.
4 #
5 # PulseAudio is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU Lesser General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
9 #
10 # PulseAudio is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 # General Public License for more details.
14 #
15 # You should have received a copy of the GNU Lesser General Public License
16 # along with PulseAudio; if not, write to the Free Software
17 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
18 # USA.
19
20 pulseconfdir=$(sysconfdir)/pulse
21
22 if BUILD_MANPAGES
23
24 man_MANS = \
25 pulseaudio.1 \
26 esdcompat.1 \
27 pax11publish.1 \
28 paplay.1 \
29 pacat.1 \
30 pacmd.1 \
31 pactl.1 \
32 pasuspender.1 \
33 padsp.1 \
34 pabrowse.1 \
35 pulse-daemon.conf.5 \
36 pulse-client.conf.5 \
37 default.pa.5
38
39 noinst_DATA = \
40 pulseaudio.1.xml \
41 esdcompat.1.xml \
42 pax11publish.1.xml \
43 paplay.1.xml \
44 pacat.1.xml \
45 pacmd.1.xml \
46 pactl.1.xml \
47 pasuspender.1.xml \
48 padsp.1.xml \
49 pabrowse.1.xml \
50 pulse-daemon.conf.5.xml \
51 pulse-client.conf.5.xml \
52 default.pa.5.xml
53
54 CLEANFILES = \
55 $(noinst_DATA)
56
57 pulseaudio.1.xml: pulseaudio.1.xml.in Makefile
58 sed -e 's,@pulseconfdir\@,$(pulseconfdir),g' \
59 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
60 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
61
62 esdcompat.1.xml: esdcompat.1.xml.in Makefile
63 sed -e 's,@pulseconfdir\@,$(pulseconfdir),g' \
64 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
65 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
66
67 pax11publish.1.xml: pax11publish.1.xml.in Makefile
68 sed -e 's,@pulseconfdir\@,$(pulseconfdir),g' \
69 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
70 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
71
72 paplay.1.xml: paplay.1.xml.in Makefile
73 sed -e 's,@pulseconfdir\@,$(pulseconfdir),g' \
74 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
75 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
76
77 pacat.1.xml: pacat.1.xml.in Makefile
78 sed -e 's,@pulseconfdir\@,$(pulseconfdir),g' \
79 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
80 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
81
82 pacmd.1.xml: pacmd.1.xml.in Makefile
83 sed -e 's,@pulseconfdir\@,$(pulseconfdir),g' \
84 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
85 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
86
87 pactl.1.xml: pactl.1.xml.in Makefile
88 sed -e 's,@pulseconfdir\@,$(pulseconfdir),g' \
89 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
90 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
91
92 pasuspender.1.xml: pasuspender.1.xml.in Makefile
93 sed -e 's,@pulseconfdir\@,$(pulseconfdir),g' \
94 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
95 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
96
97 padsp.1.xml: padsp.1.xml.in Makefile
98 sed -e 's,@pulseconfdir\@,$(pulseconfdir),g' \
99 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
100 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
101
102 pabrowse.1.xml: pabrowse.1.xml.in Makefile
103 sed -e 's,@pulseconfdir\@,$(pulseconfdir),g' \
104 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
105 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
106
107 pulse-daemon.conf.5.xml: pulse-daemon.conf.5.xml.in Makefile
108 sed -e 's,@pulseconfdir\@,$(pulseconfdir),g' \
109 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
110 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
111
112 pulse-client.conf.5.xml: pulse-client.conf.5.xml.in Makefile
113 sed -e 's,@pulseconfdir\@,$(pulseconfdir),g' \
114 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
115 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
116
117 default.pa.5.xml: default.pa.5.xml.in Makefile
118 sed -e 's,@pulseconfdir\@,$(pulseconfdir),g' \
119 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
120 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
121
122 if USE_XMLTOMAN
123
124 CLEANFILES += \
125 $(man_MANS)
126
127 pulseaudio.1: pulseaudio.1.xml Makefile
128 xmltoman $< > $@ || rm -f $@
129
130 esdcompat.1: esdcompat.1.xml Makefile
131 xmltoman $< > $@ || rm -f $@
132
133 pax11publish.1: pax11publish.1.xml Makefile
134 xmltoman $< > $@ || rm -f $@
135
136 paplay.1: paplay.1.xml Makefile
137 xmltoman $< > $@ || rm -f $@
138
139 pacat.1: pacat.1.xml Makefile
140 xmltoman $< > $@ || rm -f $@
141
142 pacmd.1: pacmd.1.xml Makefile
143 xmltoman $< > $@ || rm -f $@
144
145 pactl.1: pactl.1.xml Makefile
146 xmltoman $< > $@ || rm -f $@
147
148 pasuspender.1: pasuspender.1.xml Makefile
149 xmltoman $< > $@ || rm -f $@
150
151 padsp.1: padsp.1.xml Makefile
152 xmltoman $< > $@ || rm -f $@
153
154 pabrowse.1: pabrowse.1.xml Makefile
155 xmltoman $< > $@ || rm -f $@
156
157 pulse-daemon.conf.5: pulse-daemon.conf.5.xml Makefile
158 xmltoman $< > $@ || rm -f $@
159
160 pulse-client.conf.5: pulse-client.conf.5.xml Makefile
161 xmltoman $< > $@ || rm -f $@
162
163 default.pa.5: default.pa.5.xml Makefile
164 xmltoman $< > $@ || rm -f $@
165
166 xmllint: $(noinst_DATA)
167 for f in $(noinst_DATA) ; do \
168 xmllint --noout --valid "$$f" || exit 1 ; \
169 done
170
171 endif
172
173 endif
174
175 EXTRA_DIST = \
176 $(man_MANS) \
177 pulseaudio.1.xml.in \
178 esdcompat.1.xml.in \
179 pax11publish.1.xml.in \
180 paplay.1.xml.in \
181 pacat.1.xml.in \
182 pacmd.1.xml.in \
183 pactl.1.xml.in \
184 pasuspender.1.xml.in \
185 padsp.1.xml.in \
186 pabrowse.1.xml.in \
187 pulse-daemon.conf.5.xml.in \
188 pulse-client.conf.5.xml.in \
189 default.pa.5.xml.in \
190 xmltoman.css \
191 xmltoman.xsl \
192 xmltoman.dtd