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 \
38 avahi-discover.1.xml \
39 avahi-bookmarks.1.xml \
40 avahi-dnsconfd.8.xml \
41 avahi-daemon.conf.5.xml \
42 avahi-dnsconfd.action.8.xml \
56 avahi-publish-service.1 \
57 avahi-publish-address.1 \
63 avahi-browse.1.xml: avahi-browse.1.xml.in Makefile
64 sed -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
65 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
67 avahi-publish-service.1.xml: avahi-publish-service.1.xml.in Makefile
68 sed -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
69 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
71 avahi-publish-address.1.xml: avahi-publish-address.1.xml.in Makefile
72 sed -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
73 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
75 avahi-resolve.1.xml: avahi-resolve.1.xml.in Makefile
76 sed -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
77 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
79 avahi-daemon.8.xml: avahi-daemon.8.xml.in Makefile
80 sed -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
81 -e 's,@servicedir\@,$(servicedir),g' \
82 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
83 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
85 avahi-discover.1.xml: avahi-discover.1.xml.in Makefile
86 sed -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
87 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
89 avahi-bookmarks.1.xml: avahi-bookmarks.1.xml.in Makefile
90 sed -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
91 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
93 avahi-dnsconfd.8.xml: avahi-dnsconfd.8.xml.in Makefile
94 sed -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
95 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
96 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
98 avahi-daemon.conf.5.xml: avahi-daemon.conf.5.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-dnsconfd.action.8.xml: avahi-dnsconfd.action.8.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.service.5.xml: avahi.service.5.xml.in Makefile
109 sed -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
110 -e 's,@servicedir\@,$(servicedir),g' \
111 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
112 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
117 CLEANFILES += $(man_MANS)
119 avahi-browse.1: avahi-browse.1.xml Makefile
122 avahi-publish-service.1: avahi-publish-service.1.xml Makefile
125 avahi-publish-address.1: avahi-publish-address.1.xml Makefile
128 avahi-resolve.1: avahi-resolve.1.xml Makefile
131 avahi-daemon.8: avahi-daemon.8.xml Makefile
134 avahi-discover.1: avahi-discover.1.xml Makefile
137 avahi-bookmarks.1: avahi-bookmarks.1.xml Makefile
140 avahi-dnsconfd.8: avahi-dnsconfd.8.xml Makefile
143 avahi-daemon.conf.5: avahi-daemon.conf.5.xml Makefile
146 avahi-dnsconfd.action.8: avahi-dnsconfd.action.8.xml Makefile
149 avahi.service.5: avahi.service.5.xml Makefile
153 xmllint: $(noinst_DATA)
154 for f in $(noinst_DATA) ; do \
155 xmllint --noout --valid "$$f" || exit 1 ; \
164 avahi-browse.1.xml.in \
165 avahi-publish-service.1.xml.in \
166 avahi-publish-address.1.xml.in \
167 avahi-resolve.1.xml.in \
168 avahi-daemon.8.xml.in \
169 avahi-discover.1.xml.in \
170 avahi-bookmarks.1.xml.in \
171 avahi-dnsconfd.8.xml.in \
172 avahi-daemon.conf.5.xml.in \
173 avahi-dnsconfd.action.8.xml.in \
174 avahi.service.5.xml.in \
183 cd $(DESTDIR)/$(mandir)/man1 && \
184 rm -f avahi-resolve-host-name.1 avahi-resolve-address.1 avahi-browse-domains.1 && \
185 $(LN_S) avahi-resolve.1 avahi-resolve-host-name.1 && \
186 $(LN_S) avahi-resolve.1 avahi-resolve-address.1 && \
187 $(LN_S) avahi-browse.1 avahi-browse-domains.1