]> git.meshlink.io Git - catta/blob - man/Makefile.am
add man page for avahi-daemon
[catta] / man / Makefile.am
1 # $Id$
2
3 # This file is part of avahi.
4 #
5 # avahi is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU Lesser General Public License as
7 # published by the Free Software Foundation; either version 2 of the
8 # License, or (at your option) any later version.
9 #
10 # avahi is distributed in the hope that it will be useful, but WITHOUT
11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
13 # License for more details.
14 #
15 # You should have received a copy of the GNU Lesser General Public
16 # License along with avahi; if not, write to the Free Software
17 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
18 # USA.
19
20 pkgsysconfdir=$(sysconfdir)/avahi
21 servicedir=$(pkgsysconfdir)/services
22
23 man_MANS = \
24         avahi-daemon.8
25
26 if HAVE_PYTHON
27
28 man_MANS += \
29         avahi-browse.1 \
30         avahi-publish-service.1 \
31         avahi-publish-address.1 \
32         avahi-resolve-address.1 \
33         avahi-resolve-host-name.1
34
35 endif
36
37 noinst_DATA = \
38         avahi-browse.1.xml \
39         avahi-publish-service.1.xml \
40         avahi-publish-address.1.xml \
41         avahi-resolve-address.1.xml \
42         avahi-resolve-host-name.1.xml \
43         avahi-daemon.8.xml
44
45 EXTRA_DIST = \
46         $(man_MANS) \
47         avahi-browse.1.xml.in \
48         avahi-publish-service.1.xml.in \
49         avahi-publish-address.1.xml.in \
50         avahi-resolve-address.1.xml.in \
51         avahi-resolve-host-name.1.xml.in \
52         avahi-daemon.8.xml.in \
53         xmltoman.css \
54         xmltoman.xsl \
55         xmltoman.dtd
56
57 CLEANFILES = \
58         $(noinst_DATA)
59
60 avahi-browse.1.xml: avahi-browse.1.xml.in Makefile
61         sed -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
62         -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
63
64 avahi-publish-service.1.xml: avahi-publish-service.1.xml.in Makefile
65         sed     -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
66         -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
67
68 avahi-publish-address.1.xml: avahi-publish-address.1.xml.in Makefile
69         sed     -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
70         -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
71
72 avahi-resolve-address.1.xml: avahi-resolve-address.1.xml.in Makefile
73         sed     -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
74         -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
75
76 avahi-resolve-host-name.1.xml: avahi-resolve-host-name.1.xml.in Makefile
77         sed     -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
78         -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
79
80 avahi-daemon.8.xml: avahi-daemon.8.xml.in Makefile
81         sed -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
82                 -e 's,@servicedir\@,$(servicedir),g' \
83                 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
84         -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
85
86 if USE_XMLTOMAN
87
88 CLEANFILES += $(man_MANS)
89
90 avahi-browse.1: avahi-browse.1.xml Makefile
91         xmltoman $< > $@
92
93 avahi-publish-service.1: avahi-publish-service.1.xml Makefile
94         xmltoman $< > $@
95
96 avahi-publish-address.1: avahi-publish-address.1.xml Makefile
97         xmltoman $< > $@
98
99 avahi-resolve-address.1: avahi-resolve-address.1.xml Makefile
100         xmltoman $< > $@
101
102 avahi-resolve-host-name.1: avahi-resolve-host-name.1.xml Makefile
103         xmltoman $< > $@
104
105 avahi-daemon.8: avahi-daemon.8.xml Makefile
106         xmltoman $< > $@
107
108 endif