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 \
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 \
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 \
54 avahi-publish-service.1 \
55 avahi-publish-address.1 \
56 avahi-resolve-address.1 \
57 avahi-resolve-host-name.1 \
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' $< > $@
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' $< > $@
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' $< > $@
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' $< > $@
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' $< > $@
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' $< > $@
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' $< > $@
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' $< > $@
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' $< > $@
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' $< > $@
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' $< > $@
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' $< > $@
122 CLEANFILES += $(man_MANS)
124 avahi-browse.1: avahi-browse.1.xml Makefile
127 avahi-publish-service.1: avahi-publish-service.1.xml Makefile
130 avahi-publish-address.1: avahi-publish-address.1.xml Makefile
133 avahi-resolve-address.1: avahi-resolve-address.1.xml Makefile
136 avahi-resolve-host-name.1: avahi-resolve-host-name.1.xml Makefile
139 avahi-daemon.8: avahi-daemon.8.xml Makefile
142 avahi-discover.1: avahi-discover.1.xml Makefile
145 avahi-bookmarks.1: avahi-bookmarks.1.xml Makefile
148 avahi-dnsconfd.8: avahi-dnsconfd.8.xml Makefile
151 avahi-daemon.conf.5: avahi-daemon.conf.5.xml Makefile
154 avahi-dnsconfd.action.8: avahi-dnsconfd.action.8.xml Makefile
157 avahi.service.5: avahi.service.5.xml Makefile
161 xmllint: $(noinst_DATA)
162 for f in $(noinst_DATA) ; do \
163 xmllint --noout --valid "$$f" || exit 1 ; \
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 \