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