3 # This file is part of avahi.
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.
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.
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
20 pkgsysconfdir=$(sysconfdir)/avahi
21 servicedir=$(pkgsysconfdir)/services
29 avahi-dnsconfd.action.8 \
37 avahi-set-host-name.1.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 \
47 avahi-autoipd.action.8.xml \
81 avahi-autoipd.action.8
86 avahi-browse.1.xml: avahi-browse.1.xml.in Makefile
87 sed -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
88 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
90 avahi-publish.1.xml: avahi-publish.1.xml.in Makefile
91 sed -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
92 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
94 avahi-resolve.1.xml: avahi-resolve.1.xml.in Makefile
95 sed -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
96 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
98 avahi-set-host-name.1.xml: avahi-set-host-name.1.xml.in Makefile
99 sed -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
100 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
102 avahi-daemon.8.xml: avahi-daemon.8.xml.in Makefile
103 sed -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
104 -e 's,@servicedir\@,$(servicedir),g' \
105 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
106 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
108 avahi-discover.1.xml: avahi-discover.1.xml.in Makefile
109 sed -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
110 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
112 avahi-bookmarks.1.xml: avahi-bookmarks.1.xml.in Makefile
113 sed -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
114 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
116 avahi-dnsconfd.8.xml: avahi-dnsconfd.8.xml.in Makefile
117 sed -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
118 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
119 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
121 avahi-daemon.conf.5.xml: avahi-daemon.conf.5.xml.in Makefile
122 sed -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
123 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
124 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
126 avahi-dnsconfd.action.8.xml: avahi-dnsconfd.action.8.xml.in Makefile
127 sed -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
128 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
129 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
131 avahi.service.5.xml: avahi.service.5.xml.in Makefile
132 sed -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
133 -e 's,@servicedir\@,$(servicedir),g' \
134 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
135 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
137 avahi.hosts.5.xml: avahi.hosts.5.xml.in Makefile
138 sed -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
139 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
140 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
142 avahi-autoipd.action.8.xml: avahi-autoipd.action.8.xml.in Makefile
143 sed -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
144 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
145 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
147 avahi-autoipd.8.xml: avahi-autoipd.8.xml.in Makefile
148 sed -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
149 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
150 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
152 bssh.1.xml: bssh.1.xml.in Makefile
153 sed -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
154 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
155 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
159 CLEANFILES += $(man_MANS)
161 avahi-browse.1: avahi-browse.1.xml Makefile
164 avahi-publish.1: avahi-publish.1.xml Makefile
167 avahi-resolve.1: avahi-resolve.1.xml Makefile
170 avahi-set-host-name.1: avahi-set-host-name.1.xml Makefile
173 avahi-daemon.8: avahi-daemon.8.xml Makefile
176 avahi-discover.1: avahi-discover.1.xml Makefile
179 avahi-bookmarks.1: avahi-bookmarks.1.xml Makefile
182 avahi-dnsconfd.8: avahi-dnsconfd.8.xml Makefile
185 avahi-daemon.conf.5: avahi-daemon.conf.5.xml Makefile
188 avahi-dnsconfd.action.8: avahi-dnsconfd.action.8.xml Makefile
191 avahi.service.5: avahi.service.5.xml Makefile
194 avahi.hosts.5: avahi.hosts.5.xml Makefile
197 avahi-autoipd.action.8: avahi-autoipd.action.8.xml Makefile
200 avahi-autoipd.8: avahi-autoipd.8.xml Makefile
203 bssh.1: bssh.1.xml Makefile
206 xmllint: $(noinst_DATA)
207 for f in $(noinst_DATA) ; do \
208 xmllint --noout --valid "$$f" || exit 1 ; \
217 avahi-browse.1.xml.in \
218 avahi-publish.1.xml.in \
219 avahi-resolve.1.xml.in \
220 avahi-set-host-name.1.xml.in \
221 avahi-daemon.8.xml.in \
222 avahi-discover.1.xml.in \
223 avahi-bookmarks.1.xml.in \
224 avahi-dnsconfd.8.xml.in \
225 avahi-daemon.conf.5.xml.in \
226 avahi-dnsconfd.action.8.xml.in \
227 avahi.service.5.xml.in \
228 avahi.hosts.5.xml.in \
229 avahi-autoipd.action.8.xml.in \
230 avahi-autoipd.8.xml.in \
242 BSSH_LN += $(LN_S) bssh.1 bvnc.1 &&
246 mkdir -p $(DESTDIR)/$(mandir)/man1 && \
247 cd $(DESTDIR)/$(mandir)/man1 && \
248 rm -f avahi-resolve-host-name.1 avahi-resolve-address.1 avahi-browse-domains.1 avahi-publish-address.1 avahi-publish-service.1 bvnc.1 && \
250 $(LN_S) avahi-resolve.1 avahi-resolve-host-name.1 && \
251 $(LN_S) avahi-resolve.1 avahi-resolve-address.1 && \
252 $(LN_S) avahi-browse.1 avahi-browse-domains.1 && \
253 $(LN_S) avahi-publish.1 avahi-publish-address.1 && \
254 $(LN_S) avahi-publish.1 avahi-publish-service.1