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
112 $(srcdir)/avahi-gobject/ga-client.h \
113 $(srcdir)/avahi-gobject/ga-entry-group.h \
114 $(srcdir)/avahi-gobject/ga-enums.h \
115 $(srcdir)/avahi-gobject/ga-error.h \
116 $(srcdir)/avahi-gobject/ga-record-browser.h \
117 $(srcdir)/avahi-gobject/ga-service-browser.h \
118 $(srcdir)/avahi-gobject/ga-service-resolver.h
124 $(srcdir)/avahi-client/client.h \
125 $(srcdir)/avahi-client/lookup.h \
126 $(srcdir)/avahi-client/publish.h
132 $(srcdir)/avahi-ui/avahi-ui.h
138 $(srcdir)/avahi-core/core.h \
139 $(srcdir)/avahi-core/lookup.h \
140 $(srcdir)/avahi-core/publish.h \
141 $(srcdir)/avahi-core/rr.h \
142 $(srcdir)/avahi-core/log.h
147 $(srcdir)/avahi-ui/avahi-ui.h
150 pkgconfigdir = $(libdir)/pkgconfig
151 pkgconfig_DATA = avahi-core.pc
153 avahi-core.pc: avahi-core.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-core.pc
162 pkgconfig_DATA += avahi-client.pc
164 avahi-client.pc: avahi-client.pc.in
165 sed -e 's,@prefix\@,$(prefix),g' \
166 -e 's,@libdir\@,$(libdir),g' \
167 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
169 CLEANFILES += avahi-client.pc
171 if ENABLE_COMPAT_HOWL
173 pkgconfig_DATA += avahi-compat-howl.pc
175 avahi-compat-howl.pc: avahi-compat-howl.pc.in
176 sed -e 's,@prefix\@,$(prefix),g' \
177 -e 's,@libdir\@,$(libdir),g' \
178 -e 's,@HOWL_COMPAT_VERSION\@,$(HOWL_COMPAT_VERSION),g' $< > $@
180 CLEANFILES += avahi-compat-howl.pc
184 if ENABLE_COMPAT_LIBDNS_SD
186 pkgconfig_DATA += avahi-compat-libdns_sd.pc
188 avahi-compat-libdns_sd.pc: avahi-compat-libdns_sd.pc.in
189 sed -e 's,@prefix\@,$(prefix),g' \
190 -e 's,@libdir\@,$(libdir),g' \
191 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
193 CLEANFILES += avahi-compat-libdns_sd.pc
199 pkgconfig_DATA += avahi-sharp.pc avahi-ui-sharp.pc
201 avahi-sharp.pc: avahi-sharp.pc.in
202 sed -e 's,@prefix\@,$(prefix),g' \
203 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
204 -e 's,@libdir\@,$(libdir),g' $< > $@
206 avahi-ui-sharp.pc: avahi-ui-sharp.pc.in
207 sed -e 's,@prefix\@,$(prefix),g' \
208 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
209 -e 's,@libdir\@,$(libdir),g' $< > $@
211 CLEANFILES += avahi-sharp.pc avahi-ui-sharp.pc
219 pkgconfig_DATA += avahi-glib.pc
221 avahi-glib.pc: avahi-glib.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-glib.pc
230 pkgconfig_DATA += avahi-gobject.pc
232 avahi-gobject.pc: avahi-gobject.pc.in
233 sed -e 's,@prefix\@,$(prefix),g' \
234 -e 's,@libdir\@,$(libdir),g' \
235 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
237 CLEANFILES += avahi-gobject.pc
245 pkgconfig_DATA += avahi-ui.pc
247 avahi-ui.pc: avahi-ui.pc.in
248 sed -e 's,@prefix\@,$(prefix),g' \
249 -e 's,@libdir\@,$(libdir),g' \
250 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
252 CLEANFILES += avahi-ui.pc
259 pkgconfig_DATA += avahi-qt3.pc
261 avahi-qt3.pc: avahi-qt3.pc.in
262 sed -e 's,@prefix\@,$(prefix),g' \
263 -e 's,@libdir\@,$(libdir),g' \
264 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
266 CLEANFILES += avahi-qt3.pc
272 pkgconfig_DATA += avahi-qt4.pc
274 avahi-qt4.pc: avahi-qt4.pc.in
275 sed -e 's,@prefix\@,$(prefix),g' \
276 -e 's,@libdir\@,$(libdir),g' \
277 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
279 CLEANFILES += avahi-qt4.pc
283 CLEANFILES += avahi.devhelp
285 avahi.devhelp: doxygen-run
286 xsltproc -o $@ doxygen_to_devhelp.xsl doxygen/xml/index.xml
288 MOSTLYCLEANFILES = $(DX_CLEANFILES)
290 DISTCHECK_CONFIGURE_FLAGS = \
295 scp avahi-daemon/*.introspect avahi-daemon/introspect.dtd avahi-daemon/introspect.xsl\
296 man/*.xml man/xmltoman.dtd man/xmltoman.xsl \
297 tango:www/avahi.org/tree/download/
298 scp avahi-$(PACKAGE_VERSION).tar.gz tango:www/avahi.org/tree/download/
301 ssh tango rm -rf www/avahi.org/tree/download/doxygen
302 scp -r doxygen/html tango:www/avahi.org/tree/download/doxygen
305 if test -d .svn ; then \
307 chmod u+w ${distdir}/ChangeLog || true ; \
308 svn2cl -o ${distdir}/ChangeLog ; \