• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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, see <http://www.gnu.org/licenses/>.
15
16DISTCLEANFILES = \
17	$(noinst_DATA)
18
19noinst_DATA = \
20	pulseaudio.1.xml \
21	pax11publish.1.xml \
22	pacat.1.xml \
23	pacmd.1.xml \
24	pactl.1.xml \
25	pasuspender.1.xml \
26	padsp.1.xml \
27	pulse-daemon.conf.5.xml \
28	pulse-client.conf.5.xml \
29	default.pa.5.xml \
30	pulse-cli-syntax.5.xml \
31	start-pulseaudio-x11.1.xml
32
33if HAVE_ESOUND
34noinst_DATA += esdcompat.1.xml
35endif
36
37xmllint: $(noinst_DATA)
38	for f in $(noinst_DATA) ; do \
39			xmllint --noout --valid "$$f" || exit 1 ; \
40	done
41
42if BUILD_MANPAGES
43
44dist_man_MANS = \
45	pulseaudio.1 \
46	pax11publish.1 \
47	pacat.1 \
48	pacmd.1 \
49	pactl.1 \
50	pasuspender.1 \
51	padsp.1 \
52	pulse-daemon.conf.5 \
53	pulse-client.conf.5 \
54	default.pa.5 \
55	pulse-cli-syntax.5 \
56	start-pulseaudio-x11.1
57
58if HAVE_ESOUND
59dist_man_MANS += esdcompat.1
60endif
61CLEANFILES = \
62	$(dist_man_MANS)
63
64%: %.xml Makefile
65	$(AM_V_GEN) perl $(srcdir)/xmltoman $< > $@ || rm -f $@
66
67if OS_IS_WIN32
68SYMLINK_PROGRAM=cd $(DESTDIR)$(man1dir) && cp
69else
70SYMLINK_PROGRAM=ln -sf
71endif
72install-data-hook:
73	$(SYMLINK_PROGRAM) pacat.1 $(DESTDIR)$(man1dir)/paplay.1
74	$(SYMLINK_PROGRAM) pacat.1 $(DESTDIR)$(man1dir)/parec.1
75	$(SYMLINK_PROGRAM) pacat.1 $(DESTDIR)$(man1dir)/parecord.1
76	$(SYMLINK_PROGRAM) pacat.1 $(DESTDIR)$(man1dir)/pamon.1
77
78uninstall-hook:
79	rm -f $(DESTDIR)$(man1dir)/paplay.1
80	rm -f $(DESTDIR)$(man1dir)/parec.1
81	rm -f $(DESTDIR)$(man1dir)/parecord.1
82	rm -f $(DESTDIR)$(man1dir)/pamon.1
83endif
84
85EXTRA_DIST = \
86	pulseaudio.1.xml.in \
87	esdcompat.1.xml.in \
88	pax11publish.1.xml.in \
89	pacat.1.xml.in \
90	pacmd.1.xml.in \
91	pactl.1.xml.in \
92	pasuspender.1.xml.in \
93	padsp.1.xml.in \
94	pulse-daemon.conf.5.xml.in \
95	pulse-client.conf.5.xml.in \
96	default.pa.5.xml.in \
97	pulse-cli-syntax.5.xml.in \
98	start-pulseaudio-x11.1.xml.in \
99	xmltoman \
100	xmltoman.css \
101	xmltoman.xsl \
102	xmltoman.dtd
103