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 ACLOCAL_AMFLAGS = -I common
22 include $(srcdir)/common/doxygen.mk
36 docs/API-CHANGES-0.6 \
40 docs/server-states.dia \
49 avahi-ui-sharp.pc.in \
50 avahi-compat-libdns_sd.pc.in \
51 avahi-compat-howl.pc.in \
53 doxygen_to_devhelp.xsl
63 avahi-discover-standalone \
73 service-type-database \
74 avahi-compat-libdns_sd \
81 $(srcdir)/avahi-common/address.h \
82 $(srcdir)/avahi-common/malloc.h \
83 $(srcdir)/avahi-common/strlst.h \
84 $(srcdir)/avahi-common/alternative.h \
85 $(srcdir)/avahi-common/defs.h \
86 $(srcdir)/avahi-common/error.h \
87 $(srcdir)/avahi-common/domain.h \
88 $(srcdir)/avahi-common/watch.h \
89 $(srcdir)/avahi-common/simple-watch.h \
90 $(srcdir)/avahi-common/thread-watch.h
92 DX_EXAMPLE_PATH = $(srcdir)/examples
93 DX_EXAMPLE_PATTERNS = *.c
97 $(srcdir)/avahi-qt/qt-watch.h
101 $(srcdir)/avahi-qt/qt-watch.h
107 $(srcdir)/avahi-glib/glib-watch.h \
108 $(srcdir)/avahi-glib/glib-malloc.h
113 $(srcdir)/avahi-client/client.h \
114 $(srcdir)/avahi-client/lookup.h \
115 $(srcdir)/avahi-client/publish.h
121 $(srcdir)/avahi-ui/avahi-ui.h
127 $(srcdir)/avahi-core/core.h \
128 $(srcdir)/avahi-core/lookup.h \
129 $(srcdir)/avahi-core/publish.h \
130 $(srcdir)/avahi-core/rr.h \
131 $(srcdir)/avahi-core/log.h
136 $(srcdir)/avahi-ui/avahi-ui.h
139 pkgconfigdir = $(libdir)/pkgconfig
140 pkgconfig_DATA = avahi-core.pc
142 avahi-core.pc: avahi-core.pc.in
143 sed -e 's,@prefix\@,$(prefix),g' \
144 -e 's,@libdir\@,$(libdir),g' \
145 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
147 CLEANFILES = avahi-core.pc
151 pkgconfig_DATA += avahi-client.pc
153 avahi-client.pc: avahi-client.pc.in
154 sed -e 's,@prefix\@,$(prefix),g' \
155 -e 's,@libdir\@,$(libdir),g' \
156 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
158 CLEANFILES += avahi-client.pc
160 if ENABLE_COMPAT_HOWL
162 pkgconfig_DATA += avahi-compat-howl.pc
164 avahi-compat-howl.pc: avahi-compat-howl.pc.in
165 sed -e 's,@prefix\@,$(prefix),g' \
166 -e 's,@libdir\@,$(libdir),g' \
167 -e 's,@HOWL_COMPAT_VERSION\@,$(HOWL_COMPAT_VERSION),g' $< > $@
169 CLEANFILES += avahi-compat-howl.pc
173 if ENABLE_COMPAT_LIBDNS_SD
175 pkgconfig_DATA += avahi-compat-libdns_sd.pc
177 avahi-compat-libdns_sd.pc: avahi-compat-libdns_sd.pc.in
178 sed -e 's,@prefix\@,$(prefix),g' \
179 -e 's,@libdir\@,$(libdir),g' \
180 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
182 CLEANFILES += avahi-compat-libdns_sd.pc
188 pkgconfig_DATA += avahi-sharp.pc avahi-ui-sharp.pc
190 avahi-sharp.pc: avahi-sharp.pc.in
191 sed -e 's,@prefix\@,$(prefix),g' \
192 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
193 -e 's,@libdir\@,$(libdir),g' $< > $@
195 avahi-ui-sharp.pc: avahi-ui-sharp.pc.in
196 sed -e 's,@prefix\@,$(prefix),g' \
197 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
198 -e 's,@libdir\@,$(libdir),g' $< > $@
200 CLEANFILES += avahi-sharp.pc avahi-ui-sharp.pc
208 pkgconfig_DATA += avahi-glib.pc
210 avahi-glib.pc: avahi-glib.pc.in
211 sed -e 's,@prefix\@,$(prefix),g' \
212 -e 's,@libdir\@,$(libdir),g' \
213 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
215 CLEANFILES += avahi-glib.pc
219 pkgconfig_DATA += avahi-gobject.pc
221 avahi-gobject.pc: avahi-gobject.pc.in
222 sed -e 's,@prefix\@,$(prefix),g' \
223 -e 's,@libdir\@,$(libdir),g' \
224 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
226 CLEANFILES += avahi-gobject.pc
234 pkgconfig_DATA += avahi-ui.pc
236 avahi-ui.pc: avahi-ui.pc.in
237 sed -e 's,@prefix\@,$(prefix),g' \
238 -e 's,@libdir\@,$(libdir),g' \
239 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
241 CLEANFILES += avahi-ui.pc
248 pkgconfig_DATA += avahi-qt3.pc
250 avahi-qt3.pc: avahi-qt3.pc.in
251 sed -e 's,@prefix\@,$(prefix),g' \
252 -e 's,@libdir\@,$(libdir),g' \
253 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
255 CLEANFILES += avahi-qt3.pc
261 pkgconfig_DATA += avahi-qt4.pc
263 avahi-qt4.pc: avahi-qt4.pc.in
264 sed -e 's,@prefix\@,$(prefix),g' \
265 -e 's,@libdir\@,$(libdir),g' \
266 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
268 CLEANFILES += avahi-qt4.pc
272 CLEANFILES += avahi.devhelp
274 avahi.devhelp: doxygen-run
275 xsltproc -o $@ doxygen_to_devhelp.xsl doxygen/xml/index.xml
277 MOSTLYCLEANFILES = $(DX_CLEANFILES)
279 DISTCHECK_CONFIGURE_FLAGS = \
284 scp avahi-daemon/*.introspect avahi-daemon/introspect.dtd avahi-daemon/introspect.xsl\
285 man/*.xml man/xmltoman.dtd man/xmltoman.xsl \
286 tango:www/avahi.org/tree/download/
287 scp avahi-$(PACKAGE_VERSION).tar.gz tango:www/avahi.org/tree/download/
290 ssh tango rm -rf www/avahi.org/tree/download/doxygen
291 scp -r doxygen/html tango:www/avahi.org/tree/download/doxygen