]> git.meshlink.io Git - catta/blob - man/Makefile.am
add bssh man page
[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 if BUILD_MANPAGES
24
25 man_MANS = \
26         avahi-daemon.8 \
27         avahi-dnsconfd.8 \
28         avahi-daemon.conf.5 \
29         avahi-dnsconfd.action.8 \
30         avahi.service.5 \
31         avahi.hosts.5
32
33 noinst_DATA = \
34         avahi-browse.1.xml \
35         avahi-publish.1.xml \
36         avahi-resolve.1.xml \
37         avahi-set-host-name.1.xml \
38         avahi-daemon.8.xml \
39         avahi-discover.1.xml \
40         avahi-bookmarks.1.xml \
41         avahi-dnsconfd.8.xml \
42         avahi-daemon.conf.5.xml \
43         avahi-dnsconfd.action.8.xml \
44         avahi.service.5.xml \
45         avahi.hosts.5.xml \
46         avahi-autoipd.8.xml \
47         avahi-autoipd.action.8.xml \
48         bssh.1.xml
49
50 CLEANFILES = \
51         $(noinst_DATA)
52
53 if HAVE_DBUS
54
55 man_MANS += \
56         avahi-browse.1 \
57         avahi-resolve.1 \
58         avahi-publish.1 \
59         avahi-set-host-name.1
60
61 if HAVE_GTK
62 man_MANS += \
63         bssh.1
64 endif
65
66 if HAVE_PYTHON
67 man_MANS += \
68         avahi-discover.1 \
69         avahi-bookmarks.1
70 endif
71 endif
72
73 if ENABLE_AUTOIPD
74 if HAVE_LIBDAEMON
75
76 man_MANS += \
77         avahi-autoipd.8 \
78         avahi-autoipd.action.8
79
80 endif
81 endif
82
83 avahi-browse.1.xml: avahi-browse.1.xml.in Makefile
84         sed -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
85         -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
86
87 avahi-publish.1.xml: avahi-publish.1.xml.in Makefile
88         sed     -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
89         -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
90
91 avahi-resolve.1.xml: avahi-resolve.1.xml.in Makefile
92         sed     -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
93         -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
94
95 avahi-set-host-name.1.xml: avahi-set-host-name.1.xml.in Makefile
96         sed     -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
97         -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
98
99 avahi-daemon.8.xml: avahi-daemon.8.xml.in Makefile
100         sed -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
101                 -e 's,@servicedir\@,$(servicedir),g' \
102                 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
103         -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
104
105 avahi-discover.1.xml: avahi-discover.1.xml.in Makefile
106         sed     -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
107         -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
108
109 avahi-bookmarks.1.xml: avahi-bookmarks.1.xml.in Makefile
110         sed     -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
111         -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
112
113 avahi-dnsconfd.8.xml: avahi-dnsconfd.8.xml.in Makefile
114         sed     -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
115                 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
116         -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
117
118 avahi-daemon.conf.5.xml: avahi-daemon.conf.5.xml.in Makefile
119         sed     -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
120                 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
121         -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
122
123 avahi-dnsconfd.action.8.xml: avahi-dnsconfd.action.8.xml.in Makefile
124         sed     -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
125                 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
126         -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
127
128 avahi.service.5.xml: avahi.service.5.xml.in Makefile
129         sed     -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
130                 -e 's,@servicedir\@,$(servicedir),g' \
131                 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
132         -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
133
134 avahi.hosts.5.xml: avahi.hosts.5.xml.in Makefile
135         sed     -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
136                 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
137         -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
138
139 avahi-autoipd.action.8.xml: avahi-autoipd.action.8.xml.in Makefile
140         sed     -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
141                 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
142         -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
143
144 avahi-autoipd.8.xml: avahi-autoipd.8.xml.in Makefile
145         sed     -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
146                 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
147         -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
148
149 bssh.1.xml: bssh.1.xml.in Makefile
150         sed     -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
151                 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
152         -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
153
154 if USE_XMLTOMAN
155
156 CLEANFILES += $(man_MANS)
157
158 avahi-browse.1: avahi-browse.1.xml Makefile
159         xmltoman $< > $@
160
161 avahi-publish.1: avahi-publish.1.xml Makefile
162         xmltoman $< > $@
163
164 avahi-resolve.1: avahi-resolve.1.xml Makefile
165         xmltoman $< > $@
166
167 avahi-set-host-name.1: avahi-set-host-name.1.xml Makefile
168         xmltoman $< > $@
169
170 avahi-daemon.8: avahi-daemon.8.xml Makefile
171         xmltoman $< > $@
172
173 avahi-discover.1: avahi-discover.1.xml Makefile
174         xmltoman $< > $@
175
176 avahi-bookmarks.1: avahi-bookmarks.1.xml Makefile
177         xmltoman $< > $@
178
179 avahi-dnsconfd.8: avahi-dnsconfd.8.xml Makefile
180         xmltoman $< > $@
181
182 avahi-daemon.conf.5: avahi-daemon.conf.5.xml Makefile
183         xmltoman $< > $@
184
185 avahi-dnsconfd.action.8: avahi-dnsconfd.action.8.xml Makefile
186         xmltoman $< > $@
187
188 avahi.service.5: avahi.service.5.xml Makefile
189         xmltoman $< > $@
190
191 avahi.hosts.5: avahi.hosts.5.xml Makefile
192         xmltoman $< > $@
193
194 avahi-autoipd.action.8: avahi-autoipd.action.8.xml Makefile
195         xmltoman $< > $@
196
197 avahi-autoipd.8: avahi-autoipd.8.xml Makefile
198         xmltoman $< > $@
199
200 bssh.1: bssh.1.xml Makefile
201         xmltoman $< > $@
202
203 xmllint: $(noinst_DATA)
204         for f in $(noinst_DATA) ; do \
205                         xmllint --noout --valid "$$f" || exit 1 ; \
206         done
207
208 endif
209
210 endif
211
212 EXTRA_DIST = \
213         $(man_MANS) \
214         avahi-browse.1.xml.in \
215         avahi-publish.1.xml.in \
216         avahi-resolve.1.xml.in \
217         avahi-set-host-name.1.xml.in \
218         avahi-daemon.8.xml.in \
219         avahi-discover.1.xml.in \
220         avahi-bookmarks.1.xml.in \
221         avahi-dnsconfd.8.xml.in \
222         avahi-daemon.conf.5.xml.in \
223         avahi-dnsconfd.action.8.xml.in \
224         avahi.service.5.xml.in \
225         avahi.hosts.5.xml.in \
226         avahi-autoipd.action.8.xml.in \
227         avahi-autoipd.8.xml.in \
228         bssh.1.xml.in \
229         xmltoman.css \
230         xmltoman.xsl \
231         xmltoman.dtd
232
233
234 if HAVE_DBUS
235
236 install-exec-local:
237         mkdir -p $(DESTDIR)/$(mandir)/man1 && \
238                 cd $(DESTDIR)/$(mandir)/man1 && \
239                 rm -f avahi-resolve-host-name.1 avahi-resolve-address.1 avahi-browse-domains.1 avahi-publish-address.1 avahi-publish-service.1 && \
240                 $(LN_S) avahi-resolve.1 avahi-resolve-host-name.1 && \
241                 $(LN_S) avahi-resolve.1 avahi-resolve-address.1 && \
242                 $(LN_S) avahi-browse.1 avahi-browse-domains.1 && \
243                 $(LN_S) avahi-publish.1 avahi-publish-address.1 && \
244                 $(LN_S) avahi-publish.1 avahi-publish-service.1 && \
245                 $(LN_S) bssh.1 bvnc.1
246
247
248 endif