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