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