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
117 $(srcdir)/avahi-gobject/ga-client.h \
118 $(srcdir)/avahi-gobject/ga-entry-group.h \
119 $(srcdir)/avahi-gobject/ga-enums.h \
120 $(srcdir)/avahi-gobject/ga-error.h \
121 $(srcdir)/avahi-gobject/ga-record-browser.h \
122 $(srcdir)/avahi-gobject/ga-service-browser.h \
123 $(srcdir)/avahi-gobject/ga-service-resolver.h
130 $(srcdir)/avahi-client/client.h \
131 $(srcdir)/avahi-client/lookup.h \
132 $(srcdir)/avahi-client/publish.h
138 $(srcdir)/avahi-ui/avahi-ui.h
144 $(srcdir)/avahi-core/core.h \
145 $(srcdir)/avahi-core/lookup.h \
146 $(srcdir)/avahi-core/publish.h \
147 $(srcdir)/avahi-core/rr.h \
148 $(srcdir)/avahi-core/log.h
153 $(srcdir)/avahi-ui/avahi-ui.h
156 pkgconfigdir = $(libdir)/pkgconfig
157 pkgconfig_DATA = avahi-core.pc
159 avahi-core.pc: avahi-core.pc.in
160 sed -e 's,@prefix\@,$(prefix),g' \
161 -e 's,@libdir\@,$(libdir),g' \
162 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
164 CLEANFILES = avahi-core.pc
168 pkgconfig_DATA += avahi-client.pc
170 avahi-client.pc: avahi-client.pc.in
171 sed -e 's,@prefix\@,$(prefix),g' \
172 -e 's,@libdir\@,$(libdir),g' \
173 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
175 CLEANFILES += avahi-client.pc
177 if ENABLE_COMPAT_HOWL
179 pkgconfig_DATA += avahi-compat-howl.pc
181 avahi-compat-howl.pc: avahi-compat-howl.pc.in
182 sed -e 's,@prefix\@,$(prefix),g' \
183 -e 's,@libdir\@,$(libdir),g' \
184 -e 's,@HOWL_COMPAT_VERSION\@,$(HOWL_COMPAT_VERSION),g' $< > $@
186 CLEANFILES += avahi-compat-howl.pc
190 if ENABLE_COMPAT_LIBDNS_SD
192 pkgconfig_DATA += avahi-compat-libdns_sd.pc
194 avahi-compat-libdns_sd.pc: avahi-compat-libdns_sd.pc.in
195 sed -e 's,@prefix\@,$(prefix),g' \
196 -e 's,@libdir\@,$(libdir),g' \
197 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
199 CLEANFILES += avahi-compat-libdns_sd.pc
205 pkgconfig_DATA += avahi-sharp.pc avahi-ui-sharp.pc
207 avahi-sharp.pc: avahi-sharp.pc.in
208 sed -e 's,@prefix\@,$(prefix),g' \
209 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
210 -e 's,@libdir\@,$(libdir),g' $< > $@
212 avahi-ui-sharp.pc: avahi-ui-sharp.pc.in
213 sed -e 's,@prefix\@,$(prefix),g' \
214 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
215 -e 's,@libdir\@,$(libdir),g' $< > $@
217 CLEANFILES += avahi-sharp.pc avahi-ui-sharp.pc
225 pkgconfig_DATA += avahi-glib.pc
227 avahi-glib.pc: avahi-glib.pc.in
228 sed -e 's,@prefix\@,$(prefix),g' \
229 -e 's,@libdir\@,$(libdir),g' \
230 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
232 CLEANFILES += avahi-glib.pc
236 pkgconfig_DATA += avahi-gobject.pc
238 avahi-gobject.pc: avahi-gobject.pc.in
239 sed -e 's,@prefix\@,$(prefix),g' \
240 -e 's,@libdir\@,$(libdir),g' \
241 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
243 CLEANFILES += avahi-gobject.pc
251 pkgconfig_DATA += avahi-ui.pc
253 avahi-ui.pc: avahi-ui.pc.in
254 sed -e 's,@prefix\@,$(prefix),g' \
255 -e 's,@libdir\@,$(libdir),g' \
256 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
258 CLEANFILES += avahi-ui.pc
265 pkgconfig_DATA += avahi-qt3.pc
267 avahi-qt3.pc: avahi-qt3.pc.in
268 sed -e 's,@prefix\@,$(prefix),g' \
269 -e 's,@libdir\@,$(libdir),g' \
270 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
272 CLEANFILES += avahi-qt3.pc
278 pkgconfig_DATA += avahi-qt4.pc
280 avahi-qt4.pc: avahi-qt4.pc.in
281 sed -e 's,@prefix\@,$(prefix),g' \
282 -e 's,@libdir\@,$(libdir),g' \
283 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
285 CLEANFILES += avahi-qt4.pc
289 CLEANFILES += avahi.devhelp
291 avahi.devhelp: doxygen-run
292 xsltproc -o $@ doxygen_to_devhelp.xsl doxygen/xml/index.xml
294 MOSTLYCLEANFILES = $(DX_CLEANFILES)
296 DISTCHECK_CONFIGURE_FLAGS = \
301 scp avahi-daemon/*.introspect avahi-daemon/introspect.dtd avahi-daemon/introspect.xsl\
302 man/*.xml man/xmltoman.dtd man/xmltoman.xsl \
303 tango:www/avahi.org/tree/download/
304 scp avahi-$(PACKAGE_VERSION).tar.gz tango:www/avahi.org/tree/download/
307 ssh tango rm -rf www/avahi.org/tree/download/doxygen
308 scp -r doxygen/html tango:www/avahi.org/tree/download/doxygen
311 if test -d .svn ; then \
313 chmod u+w ${distdir}/ChangeLog || true ; \
314 svn2cl -o ${distdir}/ChangeLog ; \
321 po/.intltool-merge-cache