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