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