]> git.meshlink.io Git - catta/blob - man/Makefile.am
* Move some of the man page checks around to catch more situations
[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-address.1.xml \
37         avahi-resolve-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
46 CLEANFILES = \
47         $(noinst_DATA)
48
49 if HAVE_PYTHON
50 if HAVE_DBUS
51
52 man_MANS += \
53         avahi-browse.1 \
54         avahi-publish-service.1 \
55         avahi-publish-address.1 \
56         avahi-resolve-address.1 \
57         avahi-resolve-host-name.1 \
58         avahi-discover.1 \
59         avahi-bookmarks.1
60
61 endif
62 endif
63
64 avahi-browse.1.xml: avahi-browse.1.xml.in Makefile
65         sed -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
66         -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
67
68 avahi-publish-service.1.xml: avahi-publish-service.1.xml.in Makefile
69         sed     -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
70         -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
71
72 avahi-publish-address.1.xml: avahi-publish-address.1.xml.in Makefile
73         sed     -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
74         -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
75
76 avahi-resolve-address.1.xml: avahi-resolve-address.1.xml.in Makefile
77         sed     -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
78         -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
79
80 avahi-resolve-host-name.1.xml: avahi-resolve-host-name.1.xml.in Makefile
81         sed     -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
82         -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
83
84 avahi-daemon.8.xml: avahi-daemon.8.xml.in Makefile
85         sed -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
86                 -e 's,@servicedir\@,$(servicedir),g' \
87                 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
88         -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
89
90 avahi-discover.1.xml: avahi-discover.1.xml.in Makefile
91         sed     -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
92         -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
93
94 avahi-bookmarks.1.xml: avahi-bookmarks.1.xml.in Makefile
95         sed     -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
96         -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
97
98 avahi-dnsconfd.8.xml: avahi-dnsconfd.8.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-daemon.conf.5.xml: avahi-daemon.conf.5.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-dnsconfd.action.8.xml: avahi-dnsconfd.action.8.xml.in Makefile
109         sed     -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
110                 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
111         -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
112
113 avahi.service.5.xml: avahi.service.5.xml.in Makefile
114         sed     -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
115                 -e 's,@servicedir\@,$(servicedir),g' \
116                 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
117         -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
118
119
120 if USE_XMLTOMAN
121
122 CLEANFILES += $(man_MANS)
123
124 avahi-browse.1: avahi-browse.1.xml Makefile
125         xmltoman $< > $@
126
127 avahi-publish-service.1: avahi-publish-service.1.xml Makefile
128         xmltoman $< > $@
129
130 avahi-publish-address.1: avahi-publish-address.1.xml Makefile
131         xmltoman $< > $@
132
133 avahi-resolve-address.1: avahi-resolve-address.1.xml Makefile
134         xmltoman $< > $@
135
136 avahi-resolve-host-name.1: avahi-resolve-host-name.1.xml Makefile
137         xmltoman $< > $@
138
139 avahi-daemon.8: avahi-daemon.8.xml Makefile
140         xmltoman $< > $@
141
142 avahi-discover.1: avahi-discover.1.xml Makefile
143         xmltoman $< > $@
144
145 avahi-bookmarks.1: avahi-bookmarks.1.xml Makefile
146         xmltoman $< > $@
147
148 avahi-dnsconfd.8: avahi-dnsconfd.8.xml Makefile
149         xmltoman $< > $@
150
151 avahi-daemon.conf.5: avahi-daemon.conf.5.xml Makefile
152         xmltoman $< > $@
153
154 avahi-dnsconfd.action.8: avahi-dnsconfd.action.8.xml Makefile
155         xmltoman $< > $@
156
157 avahi.service.5: avahi.service.5.xml Makefile
158         xmltoman $< > $@
159
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-service.1.xml.in \
174         avahi-publish-address.1.xml.in \
175         avahi-resolve-address.1.xml.in \
176         avahi-resolve-host-name.1.xml.in \
177         avahi-daemon.8.xml.in \
178         avahi-discover.1.xml.in \
179         avahi-bookmarks.1.xml.in \
180         avahi-dnsconfd.8.xml.in \
181         avahi-daemon.conf.5.xml.in \
182         avahi-dnsconfd.action.8.xml.in \
183         avahi.service.5.xml.in \
184         xmltoman.css \
185         xmltoman.xsl \
186         xmltoman.dtd