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 \
34 avahi-publish-service.1 \
35 avahi-publish-address.1 \
36 avahi-resolve-address.1 \
37 avahi-resolve-host-name.1 \
45 avahi-publish-service.1.xml \
46 avahi-publish-address.1.xml \
47 avahi-resolve-address.1.xml \
48 avahi-resolve-host-name.1.xml \
50 avahi-discover.1.xml \
51 avahi-bookmarks.1.xml \
52 avahi-dnsconfd.8.xml \
53 avahi-daemon.conf.5.xml \
54 avahi-dnsconfd.action.8.xml \
59 avahi-browse.1.xml.in \
60 avahi-publish-service.1.xml.in \
61 avahi-publish-address.1.xml.in \
62 avahi-resolve-address.1.xml.in \
63 avahi-resolve-host-name.1.xml.in \
64 avahi-daemon.8.xml.in \
65 avahi-discover.1.xml.in \
66 avahi-bookmarks.1.xml.in \
67 avahi-dnsconfd.8.xml.in \
68 avahi-daemon.conf.5.xml.in \
69 avahi-dnsconfd.action.8.xml.in \
70 avahi.service.5.xml.in \
78 avahi-browse.1.xml: avahi-browse.1.xml.in Makefile
79 sed -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
80 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
82 avahi-publish-service.1.xml: avahi-publish-service.1.xml.in Makefile
83 sed -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
84 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
86 avahi-publish-address.1.xml: avahi-publish-address.1.xml.in Makefile
87 sed -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
88 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
90 avahi-resolve-address.1.xml: avahi-resolve-address.1.xml.in Makefile
91 sed -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
92 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
94 avahi-resolve-host-name.1.xml: avahi-resolve-host-name.1.xml.in Makefile
95 sed -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
96 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
98 avahi-daemon.8.xml: avahi-daemon.8.xml.in Makefile
99 sed -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
100 -e 's,@servicedir\@,$(servicedir),g' \
101 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
102 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
104 avahi-discover.1.xml: avahi-discover.1.xml.in Makefile
105 sed -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
106 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
108 avahi-bookmarks.1.xml: avahi-bookmarks.1.xml.in Makefile
109 sed -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
110 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
112 avahi-dnsconfd.8.xml: avahi-dnsconfd.8.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-daemon.conf.5.xml: avahi-daemon.conf.5.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-dnsconfd.action.8.xml: avahi-dnsconfd.action.8.xml.in Makefile
123 sed -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
124 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
125 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
127 avahi.service.5.xml: avahi.service.5.xml.in Makefile
128 sed -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
129 -e 's,@servicedir\@,$(servicedir),g' \
130 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
131 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
136 CLEANFILES += $(man_MANS)
138 avahi-browse.1: avahi-browse.1.xml Makefile
141 avahi-publish-service.1: avahi-publish-service.1.xml Makefile
144 avahi-publish-address.1: avahi-publish-address.1.xml Makefile
147 avahi-resolve-address.1: avahi-resolve-address.1.xml Makefile
150 avahi-resolve-host-name.1: avahi-resolve-host-name.1.xml Makefile
153 avahi-daemon.8: avahi-daemon.8.xml Makefile
156 avahi-discover.1: avahi-discover.1.xml Makefile
159 avahi-bookmarks.1: avahi-bookmarks.1.xml Makefile
162 avahi-dnsconfd.8: avahi-dnsconfd.8.xml Makefile
165 avahi-daemon.conf.5: avahi-daemon.conf.5.xml Makefile
168 avahi-dnsconfd.action.8: avahi-dnsconfd.action.8.xml Makefile
171 avahi.service.5: avahi.service.5.xml Makefile
175 xmllint: $(noinst_DATA)
176 for f in $(noinst_DATA) ; do \
177 xmllint --noout --valid "$$f" || exit 1 ; \