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