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