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