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
62 avahi-discover-standalone \
72 service-type-database \
73 avahi-compat-libdns_sd \
80 $(srcdir)/avahi-common/address.h \
81 $(srcdir)/avahi-common/malloc.h \
82 $(srcdir)/avahi-common/strlst.h \
83 $(srcdir)/avahi-common/alternative.h \
84 $(srcdir)/avahi-common/defs.h \
85 $(srcdir)/avahi-common/error.h \
86 $(srcdir)/avahi-common/domain.h \
87 $(srcdir)/avahi-common/watch.h \
88 $(srcdir)/avahi-common/simple-watch.h \
89 $(srcdir)/avahi-common/thread-watch.h
91 DX_EXAMPLE_PATH = $(srcdir)/examples
92 DX_EXAMPLE_PATTERNS = *.c
96 $(srcdir)/avahi-qt/qt-watch.h
100 $(srcdir)/avahi-qt/qt-watch.h
106 $(srcdir)/avahi-glib/glib-watch.h \
107 $(srcdir)/avahi-glib/glib-malloc.h
112 $(srcdir)/avahi-client/client.h \
113 $(srcdir)/avahi-client/lookup.h \
114 $(srcdir)/avahi-client/publish.h
120 $(srcdir)/avahi-ui/avahi-ui.h
126 $(srcdir)/avahi-core/core.h \
127 $(srcdir)/avahi-core/lookup.h \
128 $(srcdir)/avahi-core/publish.h \
129 $(srcdir)/avahi-core/rr.h \
130 $(srcdir)/avahi-core/log.h
135 $(srcdir)/avahi-ui/avahi-ui.h
138 pkgconfigdir = $(libdir)/pkgconfig
139 pkgconfig_DATA = avahi-core.pc
141 avahi-core.pc: avahi-core.pc.in
142 sed -e 's,@prefix\@,$(prefix),g' \
143 -e 's,@libdir\@,$(libdir),g' \
144 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
146 CLEANFILES = avahi-core.pc
150 pkgconfig_DATA += avahi-client.pc
152 avahi-client.pc: avahi-client.pc.in
153 sed -e 's,@prefix\@,$(prefix),g' \
154 -e 's,@libdir\@,$(libdir),g' \
155 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
157 CLEANFILES += avahi-client.pc
159 if ENABLE_COMPAT_HOWL
161 pkgconfig_DATA += avahi-compat-howl.pc
163 avahi-compat-howl.pc: avahi-compat-howl.pc.in
164 sed -e 's,@prefix\@,$(prefix),g' \
165 -e 's,@libdir\@,$(libdir),g' \
166 -e 's,@HOWL_COMPAT_VERSION\@,$(HOWL_COMPAT_VERSION),g' $< > $@
168 CLEANFILES += avahi-compat-howl.pc
172 if ENABLE_COMPAT_LIBDNS_SD
174 pkgconfig_DATA += avahi-compat-libdns_sd.pc
176 avahi-compat-libdns_sd.pc: avahi-compat-libdns_sd.pc.in
177 sed -e 's,@prefix\@,$(prefix),g' \
178 -e 's,@libdir\@,$(libdir),g' \
179 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
181 CLEANFILES += avahi-compat-libdns_sd.pc
187 pkgconfig_DATA += avahi-sharp.pc avahi-ui-sharp.pc
189 avahi-sharp.pc: avahi-sharp.pc.in
190 sed -e 's,@prefix\@,$(prefix),g' \
191 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
192 -e 's,@libdir\@,$(libdir),g' $< > $@
194 avahi-ui-sharp.pc: avahi-ui-sharp.pc.in
195 sed -e 's,@prefix\@,$(prefix),g' \
196 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
197 -e 's,@libdir\@,$(libdir),g' $< > $@
199 CLEANFILES += avahi-sharp.pc avahi-ui-sharp.pc
207 pkgconfig_DATA += avahi-glib.pc
209 avahi-glib.pc: avahi-glib.pc.in
210 sed -e 's,@prefix\@,$(prefix),g' \
211 -e 's,@libdir\@,$(libdir),g' \
212 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
214 CLEANFILES += avahi-glib.pc
218 pkgconfig_DATA += avahi-gobject.pc
220 avahi-gobject.pc: avahi-gobject.pc.in
221 sed -e 's,@prefix\@,$(prefix),g' \
222 -e 's,@libdir\@,$(libdir),g' \
223 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
225 CLEANFILES += avahi-gobject.pc
233 pkgconfig_DATA += avahi-ui.pc
235 avahi-ui.pc: avahi-ui.pc.in
236 sed -e 's,@prefix\@,$(prefix),g' \
237 -e 's,@libdir\@,$(libdir),g' \
238 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
240 CLEANFILES += avahi-ui.pc
247 pkgconfig_DATA += avahi-qt3.pc
249 avahi-qt3.pc: avahi-qt3.pc.in
250 sed -e 's,@prefix\@,$(prefix),g' \
251 -e 's,@libdir\@,$(libdir),g' \
252 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
254 CLEANFILES += avahi-qt3.pc
260 pkgconfig_DATA += avahi-qt4.pc
262 avahi-qt4.pc: avahi-qt4.pc.in
263 sed -e 's,@prefix\@,$(prefix),g' \
264 -e 's,@libdir\@,$(libdir),g' \
265 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
267 CLEANFILES += avahi-qt4.pc
271 CLEANFILES += avahi.devhelp
273 avahi.devhelp: doxygen-run
274 xsltproc -o $@ doxygen_to_devhelp.xsl doxygen/xml/index.xml
276 MOSTLYCLEANFILES = $(DX_CLEANFILES)
278 DISTCHECK_CONFIGURE_FLAGS = \
283 scp avahi-daemon/*.introspect avahi-daemon/introspect.dtd avahi-daemon/introspect.xsl\
284 man/*.xml man/xmltoman.dtd man/xmltoman.xsl \
285 tango:www/avahi.org/tree/download/
286 scp avahi-$(PACKAGE_VERSION).tar.gz tango:www/avahi.org/tree/download/
289 ssh tango rm -rf www/avahi.org/tree/download/doxygen
290 scp -r doxygen/html tango:www/avahi.org/tree/download/doxygen