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 \
48 avahi-ui-sharp.pc.in \
49 avahi-compat-libdns_sd.pc.in \
50 avahi-compat-howl.pc.in \
58 avahi-discover-standalone \
70 service-type-database \
71 avahi-compat-libdns_sd \
78 $(srcdir)/avahi-common/address.h \
79 $(srcdir)/avahi-common/malloc.h \
80 $(srcdir)/avahi-common/strlst.h \
81 $(srcdir)/avahi-common/alternative.h \
82 $(srcdir)/avahi-common/defs.h \
83 $(srcdir)/avahi-common/error.h \
84 $(srcdir)/avahi-common/domain.h \
85 $(srcdir)/avahi-common/watch.h \
86 $(srcdir)/avahi-common/simple-watch.h \
87 $(srcdir)/avahi-common/thread-watch.h
89 DX_EXAMPLE_PATH = $(srcdir)/examples
90 DX_EXAMPLE_PATTERNS = *.c
94 $(srcdir)/avahi-qt/qt-watch.h
98 $(srcdir)/avahi-qt/qt-watch.h
104 $(srcdir)/avahi-glib/glib-watch.h \
105 $(srcdir)/avahi-glib/glib-malloc.h
110 $(srcdir)/avahi-client/client.h \
111 $(srcdir)/avahi-client/lookup.h \
112 $(srcdir)/avahi-client/publish.h
118 $(srcdir)/avahi-ui/avahi-ui.h
124 $(srcdir)/avahi-core/core.h \
125 $(srcdir)/avahi-core/lookup.h \
126 $(srcdir)/avahi-core/publish.h \
127 $(srcdir)/avahi-core/rr.h \
128 $(srcdir)/avahi-core/log.h
133 $(srcdir)/avahi-ui/avahi-ui.h
136 pkgconfigdir = $(libdir)/pkgconfig
137 pkgconfig_DATA = avahi-core.pc
139 avahi-core.pc: avahi-core.pc.in
140 sed -e 's,@prefix\@,$(prefix),g' \
141 -e 's,@libdir\@,$(libdir),g' \
142 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
144 CLEANFILES = avahi-core.pc
148 pkgconfig_DATA += avahi-client.pc
150 avahi-client.pc: avahi-client.pc.in
151 sed -e 's,@prefix\@,$(prefix),g' \
152 -e 's,@libdir\@,$(libdir),g' \
153 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
155 CLEANFILES += avahi-client.pc
157 if ENABLE_COMPAT_HOWL
159 pkgconfig_DATA += avahi-compat-howl.pc
161 avahi-compat-howl.pc: avahi-compat-howl.pc.in
162 sed -e 's,@prefix\@,$(prefix),g' \
163 -e 's,@libdir\@,$(libdir),g' \
164 -e 's,@HOWL_COMPAT_VERSION\@,$(HOWL_COMPAT_VERSION),g' $< > $@
166 CLEANFILES += avahi-compat-howl.pc
170 if ENABLE_COMPAT_LIBDNS_SD
172 pkgconfig_DATA += avahi-compat-libdns_sd.pc
174 avahi-compat-libdns_sd.pc: avahi-compat-libdns_sd.pc.in
175 sed -e 's,@prefix\@,$(prefix),g' \
176 -e 's,@libdir\@,$(libdir),g' \
177 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
179 CLEANFILES += avahi-compat-libdns_sd.pc
185 pkgconfig_DATA += avahi-sharp.pc avahi-ui-sharp.pc
187 avahi-sharp.pc: avahi-sharp.pc.in
188 sed -e 's,@prefix\@,$(prefix),g' \
189 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
190 -e 's,@libdir\@,$(libdir),g' $< > $@
192 avahi-ui-sharp.pc: avahi-ui-sharp.pc.in
193 sed -e 's,@prefix\@,$(prefix),g' \
194 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
195 -e 's,@libdir\@,$(libdir),g' $< > $@
197 CLEANFILES += avahi-sharp.pc avahi-ui-sharp.pc
205 pkgconfig_DATA += avahi-glib.pc
207 avahi-glib.pc: avahi-glib.pc.in
208 sed -e 's,@prefix\@,$(prefix),g' \
209 -e 's,@libdir\@,$(libdir),g' \
210 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
212 CLEANFILES += avahi-glib.pc
219 pkgconfig_DATA += avahi-ui.pc
221 avahi-ui.pc: avahi-ui.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-ui.pc
233 pkgconfig_DATA += avahi-qt3.pc
235 avahi-qt3.pc: avahi-qt3.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-qt3.pc
246 pkgconfig_DATA += avahi-qt4.pc
248 avahi-qt4.pc: avahi-qt4.pc.in
249 sed -e 's,@prefix\@,$(prefix),g' \
250 -e 's,@libdir\@,$(libdir),g' \
251 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
253 CLEANFILES += avahi-qt4.pc
257 MOSTLYCLEANFILES = $(DX_CLEANFILES)
259 DISTCHECK_CONFIGURE_FLAGS = \
264 scp avahi-daemon/*.introspect avahi-daemon/introspect.dtd avahi-daemon/introspect.xsl\
265 man/*.xml man/xmltoman.dtd man/xmltoman.xsl \
266 tango:www/avahi.org/tree/download/
267 scp avahi-$(PACKAGE_VERSION).tar.gz tango:www/avahi.org/tree/download/
270 ssh tango rm -rf www/avahi.org/tree/download/doxygen
271 scp -r doxygen/html tango:www/avahi.org/tree/download/doxygen