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
72 avahi-autoipd.action.8
77 avahi-browse.1.xml: avahi-browse.1.xml.in Makefile
78 sed -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
79 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
81 avahi-publish.1.xml: avahi-publish.1.xml.in Makefile
82 sed -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
83 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
85 avahi-resolve.1.xml: avahi-resolve.1.xml.in Makefile
86 sed -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
87 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
89 avahi-set-host-name.1.xml: avahi-set-host-name.1.xml.in Makefile
90 sed -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
91 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
93 avahi-daemon.8.xml: avahi-daemon.8.xml.in Makefile
94 sed -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
95 -e 's,@servicedir\@,$(servicedir),g' \
96 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
97 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
99 avahi-discover.1.xml: avahi-discover.1.xml.in Makefile
100 sed -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
101 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
103 avahi-bookmarks.1.xml: avahi-bookmarks.1.xml.in Makefile
104 sed -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
105 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
107 avahi-dnsconfd.8.xml: avahi-dnsconfd.8.xml.in Makefile
108 sed -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
109 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
110 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
112 avahi-daemon.conf.5.xml: avahi-daemon.conf.5.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' $< > $@
117 avahi-dnsconfd.action.8.xml: avahi-dnsconfd.action.8.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' $< > $@
122 avahi.service.5.xml: avahi.service.5.xml.in Makefile
123 sed -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
124 -e 's,@servicedir\@,$(servicedir),g' \
125 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
126 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
128 avahi.hosts.5.xml: avahi.hosts.5.xml.in Makefile
129 sed -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
130 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
131 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
133 avahi-autoipd.action.8.xml: avahi-autoipd.action.8.xml.in Makefile
134 sed -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
135 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
136 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
138 avahi-autoipd.8.xml: avahi-autoipd.8.xml.in Makefile
139 sed -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
140 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
141 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
146 CLEANFILES += $(man_MANS)
148 avahi-browse.1: avahi-browse.1.xml Makefile
151 avahi-publish.1: avahi-publish.1.xml Makefile
154 avahi-resolve.1: avahi-resolve.1.xml Makefile
157 avahi-set-host-name.1: avahi-set-host-name.1.xml Makefile
160 avahi-daemon.8: avahi-daemon.8.xml Makefile
163 avahi-discover.1: avahi-discover.1.xml Makefile
166 avahi-bookmarks.1: avahi-bookmarks.1.xml Makefile
169 avahi-dnsconfd.8: avahi-dnsconfd.8.xml Makefile
172 avahi-daemon.conf.5: avahi-daemon.conf.5.xml Makefile
175 avahi-dnsconfd.action.8: avahi-dnsconfd.action.8.xml Makefile
178 avahi.service.5: avahi.service.5.xml Makefile
181 avahi.hosts.5: avahi.hosts.5.xml Makefile
184 avahi-autoipd.action.8: avahi-autoipd.action.8.xml Makefile
187 avahi-autoipd.8: avahi-autoipd.8.xml Makefile
190 xmllint: $(noinst_DATA)
191 for f in $(noinst_DATA) ; do \
192 xmllint --noout --valid "$$f" || exit 1 ; \
201 avahi-browse.1.xml.in \
202 avahi-publish.1.xml.in \
203 avahi-resolve.1.xml.in \
204 avahi-set-host-name.1.xml.in \
205 avahi-daemon.8.xml.in \
206 avahi-discover.1.xml.in \
207 avahi-bookmarks.1.xml.in \
208 avahi-dnsconfd.8.xml.in \
209 avahi-daemon.conf.5.xml.in \
210 avahi-dnsconfd.action.8.xml.in \
211 avahi.service.5.xml.in \
212 avahi.hosts.5.xml.in \
213 avahi-autoipd.action.8.xml.in \
214 avahi-autoipd.8.xml.in \
223 mkdir -p $(DESTDIR)/$(mandir)/man1 && \
224 cd $(DESTDIR)/$(mandir)/man1 && \
225 rm -f avahi-resolve-host-name.1 avahi-resolve-address.1 avahi-browse-domains.1 avahi-publish-address.1 avahi-publish-service.1 && \
226 $(LN_S) avahi-resolve.1 avahi-resolve-host-name.1 && \
227 $(LN_S) avahi-resolve.1 avahi-resolve-address.1 && \
228 $(LN_S) avahi-browse.1 avahi-browse-domains.1 && \
229 $(LN_S) avahi-publish.1 avahi-publish-address.1 && \
230 $(LN_S) avahi-publish.1 avahi-publish-service.1