]> git.meshlink.io Git - catta/blob - man/Makefile.am
Complete AVAHI_LOOKUP_NO_ADDRESS fix
[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         avahi-dnsconfd.8 \
26         avahi-daemon.conf.5 \
27         avahi-dnsconfd.action.8 \
28         avahi.service.5
29
30 if HAVE_PYTHON
31 if HAVE_DBUS
32
33 man_MANS += \
34         avahi-browse.1 \
35         avahi-publish-service.1 \
36         avahi-publish-address.1 \
37         avahi-resolve-address.1 \
38         avahi-resolve-host-name.1 \
39         avahi-discover.1 \
40         avahi-bookmarks.1
41
42 endif
43 endif
44
45 noinst_DATA = \
46         avahi-browse.1.xml \
47         avahi-publish-service.1.xml \
48         avahi-publish-address.1.xml \
49         avahi-resolve-address.1.xml \
50         avahi-resolve-host-name.1.xml \
51         avahi-daemon.8.xml \
52         avahi-discover.1.xml \
53         avahi-bookmarks.1.xml \
54         avahi-dnsconfd.8.xml \
55         avahi-daemon.conf.5.xml \
56         avahi-dnsconfd.action.8.xml \
57         avahi.service.5.xml
58
59 EXTRA_DIST = \
60         $(man_MANS) \
61         avahi-browse.1.xml.in \
62         avahi-publish-service.1.xml.in \
63         avahi-publish-address.1.xml.in \
64         avahi-resolve-address.1.xml.in \
65         avahi-resolve-host-name.1.xml.in \
66         avahi-daemon.8.xml.in \
67         avahi-discover.1.xml.in \
68         avahi-bookmarks.1.xml.in \
69         avahi-dnsconfd.8.xml.in \
70         avahi-daemon.conf.5.xml.in \
71         avahi-dnsconfd.action.8.xml.in \
72         avahi.service.5.xml.in \
73         xmltoman.css \
74         xmltoman.xsl \
75         xmltoman.dtd
76
77 CLEANFILES = \
78         $(noinst_DATA)
79
80 avahi-browse.1.xml: avahi-browse.1.xml.in Makefile
81         sed -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
82         -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
83
84 avahi-publish-service.1.xml: avahi-publish-service.1.xml.in Makefile
85         sed     -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
86         -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
87
88 avahi-publish-address.1.xml: avahi-publish-address.1.xml.in Makefile
89         sed     -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
90         -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
91
92 avahi-resolve-address.1.xml: avahi-resolve-address.1.xml.in Makefile
93         sed     -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
94         -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
95
96 avahi-resolve-host-name.1.xml: avahi-resolve-host-name.1.xml.in Makefile
97         sed     -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
98         -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
99
100 avahi-daemon.8.xml: avahi-daemon.8.xml.in Makefile
101         sed -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
102                 -e 's,@servicedir\@,$(servicedir),g' \
103                 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
104         -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
105
106 avahi-discover.1.xml: avahi-discover.1.xml.in Makefile
107         sed     -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
108         -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
109
110 avahi-bookmarks.1.xml: avahi-bookmarks.1.xml.in Makefile
111         sed     -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
112         -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
113
114 avahi-dnsconfd.8.xml: avahi-dnsconfd.8.xml.in Makefile
115         sed     -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
116                 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
117         -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
118
119 avahi-daemon.conf.5.xml: avahi-daemon.conf.5.xml.in Makefile
120         sed     -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
121                 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
122         -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
123
124 avahi-dnsconfd.action.8.xml: avahi-dnsconfd.action.8.xml.in Makefile
125         sed     -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
126                 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
127         -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
128
129 avahi.service.5.xml: avahi.service.5.xml.in Makefile
130         sed     -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
131                 -e 's,@servicedir\@,$(servicedir),g' \
132                 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
133         -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
134
135
136 if USE_XMLTOMAN
137
138 CLEANFILES += $(man_MANS)
139
140 avahi-browse.1: avahi-browse.1.xml Makefile
141         xmltoman $< > $@
142
143 avahi-publish-service.1: avahi-publish-service.1.xml Makefile
144         xmltoman $< > $@
145
146 avahi-publish-address.1: avahi-publish-address.1.xml Makefile
147         xmltoman $< > $@
148
149 avahi-resolve-address.1: avahi-resolve-address.1.xml Makefile
150         xmltoman $< > $@
151
152 avahi-resolve-host-name.1: avahi-resolve-host-name.1.xml Makefile
153         xmltoman $< > $@
154
155 avahi-daemon.8: avahi-daemon.8.xml Makefile
156         xmltoman $< > $@
157
158 avahi-discover.1: avahi-discover.1.xml Makefile
159         xmltoman $< > $@
160
161 avahi-bookmarks.1: avahi-bookmarks.1.xml Makefile
162         xmltoman $< > $@
163
164 avahi-dnsconfd.8: avahi-dnsconfd.8.xml Makefile
165         xmltoman $< > $@
166
167 avahi-daemon.conf.5: avahi-daemon.conf.5.xml Makefile
168         xmltoman $< > $@
169
170 avahi-dnsconfd.action.8: avahi-dnsconfd.action.8.xml Makefile
171         xmltoman $< > $@
172
173 avahi.service.5: avahi.service.5.xml Makefile
174         xmltoman $< > $@
175
176
177 xmllint: $(noinst_DATA)
178         for f in $(noinst_DATA) ; do \
179                         xmllint --noout --valid "$$f" || exit 1 ; \
180         done
181
182 endif