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 \
66 avahi-discover-standalone \
76 service-type-database \
77 avahi-compat-libdns_sd \
85 $(srcdir)/avahi-common/address.h \
86 $(srcdir)/avahi-common/malloc.h \
87 $(srcdir)/avahi-common/strlst.h \
88 $(srcdir)/avahi-common/alternative.h \
89 $(srcdir)/avahi-common/defs.h \
90 $(srcdir)/avahi-common/error.h \
91 $(srcdir)/avahi-common/domain.h \
92 $(srcdir)/avahi-common/watch.h \
93 $(srcdir)/avahi-common/simple-watch.h \
94 $(srcdir)/avahi-common/thread-watch.h
96 DX_EXAMPLE_PATH = $(srcdir)/examples
97 DX_EXAMPLE_PATTERNS = *.c
101 $(srcdir)/avahi-qt/qt-watch.h
105 $(srcdir)/avahi-qt/qt-watch.h
111 $(srcdir)/avahi-glib/glib-watch.h \
112 $(srcdir)/avahi-glib/glib-malloc.h
116 $(srcdir)/avahi-gobject/ga-client.h \
117 $(srcdir)/avahi-gobject/ga-entry-group.h \
118 $(srcdir)/avahi-gobject/ga-enums.h \
119 $(srcdir)/avahi-gobject/ga-error.h \
120 $(srcdir)/avahi-gobject/ga-record-browser.h \
121 $(srcdir)/avahi-gobject/ga-service-browser.h \
122 $(srcdir)/avahi-gobject/ga-service-resolver.h
128 $(srcdir)/avahi-client/client.h \
129 $(srcdir)/avahi-client/lookup.h \
130 $(srcdir)/avahi-client/publish.h
136 $(srcdir)/avahi-ui/avahi-ui.h
142 $(srcdir)/avahi-core/core.h \
143 $(srcdir)/avahi-core/lookup.h \
144 $(srcdir)/avahi-core/publish.h \
145 $(srcdir)/avahi-core/rr.h \
146 $(srcdir)/avahi-core/log.h
151 $(srcdir)/avahi-ui/avahi-ui.h
154 pkgconfigdir = $(libdir)/pkgconfig
155 pkgconfig_DATA = avahi-core.pc
157 avahi-core.pc: avahi-core.pc.in
158 sed -e 's,@prefix\@,$(prefix),g' \
159 -e 's,@libdir\@,$(libdir),g' \
160 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
162 CLEANFILES = avahi-core.pc
166 pkgconfig_DATA += avahi-client.pc
168 avahi-client.pc: avahi-client.pc.in
169 sed -e 's,@prefix\@,$(prefix),g' \
170 -e 's,@libdir\@,$(libdir),g' \
171 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
173 CLEANFILES += avahi-client.pc
175 if ENABLE_COMPAT_HOWL
177 pkgconfig_DATA += avahi-compat-howl.pc
179 avahi-compat-howl.pc: avahi-compat-howl.pc.in
180 sed -e 's,@prefix\@,$(prefix),g' \
181 -e 's,@libdir\@,$(libdir),g' \
182 -e 's,@HOWL_COMPAT_VERSION\@,$(HOWL_COMPAT_VERSION),g' $< > $@
184 CLEANFILES += avahi-compat-howl.pc
188 if ENABLE_COMPAT_LIBDNS_SD
190 pkgconfig_DATA += avahi-compat-libdns_sd.pc
192 avahi-compat-libdns_sd.pc: avahi-compat-libdns_sd.pc.in
193 sed -e 's,@prefix\@,$(prefix),g' \
194 -e 's,@libdir\@,$(libdir),g' \
195 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
197 CLEANFILES += avahi-compat-libdns_sd.pc
203 pkgconfig_DATA += avahi-sharp.pc avahi-ui-sharp.pc
205 avahi-sharp.pc: avahi-sharp.pc.in
206 sed -e 's,@prefix\@,$(prefix),g' \
207 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
208 -e 's,@libdir\@,$(libdir),g' $< > $@
210 avahi-ui-sharp.pc: avahi-ui-sharp.pc.in
211 sed -e 's,@prefix\@,$(prefix),g' \
212 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
213 -e 's,@libdir\@,$(libdir),g' $< > $@
215 CLEANFILES += avahi-sharp.pc avahi-ui-sharp.pc
223 pkgconfig_DATA += avahi-glib.pc
225 avahi-glib.pc: avahi-glib.pc.in
226 sed -e 's,@prefix\@,$(prefix),g' \
227 -e 's,@libdir\@,$(libdir),g' \
228 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
230 CLEANFILES += avahi-glib.pc
234 pkgconfig_DATA += avahi-gobject.pc
236 avahi-gobject.pc: avahi-gobject.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-gobject.pc
249 pkgconfig_DATA += avahi-ui.pc
251 avahi-ui.pc: avahi-ui.pc.in
252 sed -e 's,@prefix\@,$(prefix),g' \
253 -e 's,@libdir\@,$(libdir),g' \
254 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
256 CLEANFILES += avahi-ui.pc
263 pkgconfig_DATA += avahi-qt3.pc
265 avahi-qt3.pc: avahi-qt3.pc.in
266 sed -e 's,@prefix\@,$(prefix),g' \
267 -e 's,@libdir\@,$(libdir),g' \
268 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
270 CLEANFILES += avahi-qt3.pc
276 pkgconfig_DATA += avahi-qt4.pc
278 avahi-qt4.pc: avahi-qt4.pc.in
279 sed -e 's,@prefix\@,$(prefix),g' \
280 -e 's,@libdir\@,$(libdir),g' \
281 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
283 CLEANFILES += avahi-qt4.pc
287 CLEANFILES += avahi.devhelp
289 avahi.devhelp: doxygen-run
290 xsltproc -o $@ doxygen_to_devhelp.xsl doxygen/xml/index.xml
292 MOSTLYCLEANFILES = $(DX_CLEANFILES)
294 DISTCHECK_CONFIGURE_FLAGS = \
299 scp avahi-daemon/*.introspect avahi-daemon/introspect.dtd avahi-daemon/introspect.xsl\
300 man/*.xml man/xmltoman.dtd man/xmltoman.xsl \
301 tango:www/avahi.org/tree/download/
302 scp avahi-$(PACKAGE_VERSION).tar.gz tango:www/avahi.org/tree/download/
305 ssh tango rm -rf www/avahi.org/tree/download/doxygen
306 scp -r doxygen/html tango:www/avahi.org/tree/download/doxygen
309 if test -d .svn ; then \
311 chmod u+w ${distdir}/ChangeLog || true ; \
312 svn2cl -o ${distdir}/ChangeLog ; \
319 po/.intltool-merge-cache