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