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