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
27 avahi-dnsconfd.action.8 \
35 avahi-publish-service.1 \
36 avahi-publish-address.1 \
37 avahi-resolve-address.1 \
38 avahi-resolve-host-name.1 \
47 avahi-publish-service.1.xml \
48 avahi-publish-address.1.xml \
49 avahi-resolve-address.1.xml \
50 avahi-resolve-host-name.1.xml \
52 avahi-discover.1.xml \
53 avahi-bookmarks.1.xml \
54 avahi-dnsconfd.8.xml \
55 avahi-daemon.conf.5.xml \
56 avahi-dnsconfd.action.8.xml \
61 avahi-browse.1.xml.in \
62 avahi-publish-service.1.xml.in \
63 avahi-publish-address.1.xml.in \
64 avahi-resolve-address.1.xml.in \
65 avahi-resolve-host-name.1.xml.in \
66 avahi-daemon.8.xml.in \
67 avahi-discover.1.xml.in \
68 avahi-bookmarks.1.xml.in \
69 avahi-dnsconfd.8.xml.in \
70 avahi-daemon.conf.5.xml.in \
71 avahi-dnsconfd.action.8.xml.in \
72 avahi.service.5.xml.in \
80 avahi-browse.1.xml: avahi-browse.1.xml.in Makefile
81 sed -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
82 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
84 avahi-publish-service.1.xml: avahi-publish-service.1.xml.in Makefile
85 sed -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
86 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
88 avahi-publish-address.1.xml: avahi-publish-address.1.xml.in Makefile
89 sed -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
90 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
92 avahi-resolve-address.1.xml: avahi-resolve-address.1.xml.in Makefile
93 sed -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
94 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
96 avahi-resolve-host-name.1.xml: avahi-resolve-host-name.1.xml.in Makefile
97 sed -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
98 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
100 avahi-daemon.8.xml: avahi-daemon.8.xml.in Makefile
101 sed -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
102 -e 's,@servicedir\@,$(servicedir),g' \
103 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
104 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
106 avahi-discover.1.xml: avahi-discover.1.xml.in Makefile
107 sed -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
108 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
110 avahi-bookmarks.1.xml: avahi-bookmarks.1.xml.in Makefile
111 sed -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
112 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
114 avahi-dnsconfd.8.xml: avahi-dnsconfd.8.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' $< > $@
119 avahi-daemon.conf.5.xml: avahi-daemon.conf.5.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' $< > $@
124 avahi-dnsconfd.action.8.xml: avahi-dnsconfd.action.8.xml.in Makefile
125 sed -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
126 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
127 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
129 avahi.service.5.xml: avahi.service.5.xml.in Makefile
130 sed -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
131 -e 's,@servicedir\@,$(servicedir),g' \
132 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
133 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
138 CLEANFILES += $(man_MANS)
140 avahi-browse.1: avahi-browse.1.xml Makefile
143 avahi-publish-service.1: avahi-publish-service.1.xml Makefile
146 avahi-publish-address.1: avahi-publish-address.1.xml Makefile
149 avahi-resolve-address.1: avahi-resolve-address.1.xml Makefile
152 avahi-resolve-host-name.1: avahi-resolve-host-name.1.xml Makefile
155 avahi-daemon.8: avahi-daemon.8.xml Makefile
158 avahi-discover.1: avahi-discover.1.xml Makefile
161 avahi-bookmarks.1: avahi-bookmarks.1.xml Makefile
164 avahi-dnsconfd.8: avahi-dnsconfd.8.xml Makefile
167 avahi-daemon.conf.5: avahi-daemon.conf.5.xml Makefile
170 avahi-dnsconfd.action.8: avahi-dnsconfd.action.8.xml Makefile
173 avahi.service.5: avahi.service.5.xml Makefile
177 xmllint: $(noinst_DATA)
178 for f in $(noinst_DATA) ; do \
179 xmllint --noout --valid "$$f" || exit 1 ; \