1# This file is part of avahi.
2#
3# avahi is free software; you can redistribute it and/or modify it
4# under the terms of the GNU Lesser General Public License as
5# published by the Free Software Foundation; either version 2 of the
6# License, or (at your option) any later version.
7#
8# avahi is distributed in the hope that it will be useful, but WITHOUT
9# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
10# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
11# License for more details.
12#
13# You should have received a copy of the GNU Lesser General Public
14# License along with avahi; if not, write to the Free Software
15# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
16# USA.
17
18ACLOCAL_AMFLAGS = -I common
19
20include $(srcdir)/common/doxygen.mk
21
22EXTRA_DIST = \
23	autogen.sh \
24	bootstrap.sh \
25	LICENSE \
26	$(DX_CONFIG) \
27	docs/INSTALL \
28	docs/TODO \
29	docs/NEWS \
30	docs/README \
31	docs/DBUS-API \
32	docs/AUTHORS \
33	docs/HACKING \
34	docs/API-CHANGES-0.6 \
35	docs/COMPAT-LAYERS \
36	docs/MALLOC \
37	docs/overview.dia \
38	docs/server-states.dia \
39	docs/avahi-poll.dia \
40	avahi-core.pc.in \
41	avahi-client.pc.in \
42	avahi-glib.pc.in \
43	avahi-gobject.pc.in \
44	avahi-qt3.pc.in \
45	avahi-qt4.pc.in \
46	avahi-sharp.pc.in \
47	avahi-ui-sharp.pc.in \
48	avahi-compat-libdns_sd.pc.in \
49	avahi-compat-howl.pc.in \
50	avahi-ui.pc.in \
51	avahi-ui-gtk3.pc.in \
52	doxygen_to_devhelp.xsl \
53        common/introspection.m4
54
55SUBDIRS = \
56	common \
57	avahi-common \
58	avahi-core \
59	avahi-qt \
60	avahi-client \
61	avahi-glib \
62	avahi-gobject \
63	avahi-discover-standalone \
64	avahi-daemon \
65	avahi-sharp \
66	initscript \
67	avahi-dnsconfd \
68	avahi-utils \
69	avahi-python \
70	examples \
71	man \
72	tests \
73	service-type-database \
74	avahi-compat-libdns_sd \
75	avahi-compat-howl \
76	avahi-autoipd \
77	avahi-ui \
78	avahi-ui-sharp
79
80DX_INPUT = \
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
91
92DX_EXAMPLE_PATH = $(srcdir)/examples
93DX_EXAMPLE_PATTERNS = *.c
94
95if HAVE_QT3
96DX_INPUT += \
97	$(srcdir)/avahi-qt/qt-watch.h
98else
99if HAVE_QT4
100DX_INPUT += \
101	$(srcdir)/avahi-qt/qt-watch.h
102endif
103endif
104
105if HAVE_GLIB
106DX_INPUT += \
107	$(srcdir)/avahi-glib/glib-watch.h \
108	$(srcdir)/avahi-glib/glib-malloc.h
109
110if HAVE_GOBJECT
111if HAVE_DBUS
112DX_INPUT += \
113	$(srcdir)/avahi-gobject/ga-client.h \
114	$(srcdir)/avahi-gobject/ga-entry-group.h \
115	$(srcdir)/avahi-gobject/ga-enums.h \
116	$(srcdir)/avahi-gobject/ga-error.h \
117	$(srcdir)/avahi-gobject/ga-record-browser.h \
118	$(srcdir)/avahi-gobject/ga-service-browser.h \
119	$(srcdir)/avahi-gobject/ga-service-resolver.h
120endif
121endif
122endif
123
124if HAVE_DBUS
125DX_INPUT += \
126	$(srcdir)/avahi-client/client.h \
127	$(srcdir)/avahi-client/lookup.h \
128	$(srcdir)/avahi-client/publish.h
129endif
130
131if HAVE_DBUS
132if HAVE_GTK
133DX_INPUT += \
134	$(srcdir)/avahi-ui/avahi-ui.h
135endif
136endif
137
138if ENABLE_CORE_DOCS
139DX_INPUT += \
140	$(srcdir)/avahi-core/core.h \
141	$(srcdir)/avahi-core/lookup.h \
142	$(srcdir)/avahi-core/publish.h \
143	$(srcdir)/avahi-core/rr.h \
144	$(srcdir)/avahi-core/log.h
145endif
146
147if HAVE_GTK
148DX_INPUT += \
149	$(srcdir)/avahi-ui/avahi-ui.h
150endif
151
152pkgconfigdir = $(libdir)/pkgconfig
153
154%.pc: %.pc.in
155	$(AM_V_GEN)sed -e 's,@prefix\@,$(prefix),g' \
156	    -e 's,@libdir\@,$(libdir),g' \
157	    -e 's,@HOWL_COMPAT_VERSION\@,$(HOWL_COMPAT_VERSION),g' \
158	    -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
159
160pkgconfig_DATA = avahi-core.pc
161CLEANFILES = avahi-core.pc
162
163if HAVE_DBUS
164pkgconfig_DATA += avahi-client.pc
165CLEANFILES += avahi-client.pc
166
167if ENABLE_COMPAT_HOWL
168pkgconfig_DATA += avahi-compat-howl.pc
169CLEANFILES += avahi-compat-howl.pc
170endif
171
172if ENABLE_COMPAT_LIBDNS_SD
173pkgconfig_DATA += avahi-compat-libdns_sd.pc
174CLEANFILES += avahi-compat-libdns_sd.pc
175endif
176
177if HAVE_MONO
178pkgconfig_DATA += avahi-sharp.pc avahi-ui-sharp.pc
179CLEANFILES += avahi-sharp.pc avahi-ui-sharp.pc
180endif
181
182endif
183
184if HAVE_GLIB
185pkgconfig_DATA += avahi-glib.pc
186CLEANFILES += avahi-glib.pc
187
188if HAVE_GOBJECT
189pkgconfig_DATA += avahi-gobject.pc
190CLEANFILES += avahi-gobject.pc
191endif
192endif
193
194if HAVE_GTK
195if HAVE_DBUS
196pkgconfig_DATA += avahi-ui.pc
197CLEANFILES += avahi-ui.pc
198endif
199endif
200
201if HAVE_GTK3
202if HAVE_DBUS
203pkgconfig_DATA += avahi-ui-gtk3.pc
204CLEANFILES += avahi-ui-gtk3.pc
205endif
206endif
207
208if HAVE_QT3
209pkgconfig_DATA += avahi-qt3.pc
210CLEANFILES += avahi-qt3.pc
211endif
212
213if HAVE_QT4
214pkgconfig_DATA += avahi-qt4.pc
215CLEANFILES += avahi-qt4.pc
216endif
217
218CLEANFILES += avahi.devhelp
219
220avahi.devhelp: doxygen-run
221	xsltproc -o $@ doxygen_to_devhelp.xsl doxygen/xml/index.xml
222
223MOSTLYCLEANFILES = $(DX_CLEANFILES)
224
225DISTCHECK_CONFIGURE_FLAGS = \
226	--disable-monodoc \
227	--enable-introspection \
228	--with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)
229
230homepage:
231	$(MAKE) -C man
232	scp avahi-daemon/*.xml avahi-daemon/introspect.dtd avahi-daemon/introspect.xsl\
233	    man/*.xml man/xmltoman.dtd man/xmltoman.xsl \
234	    tango:www/avahi.org/tree/download/
235	scp avahi-$(PACKAGE_VERSION).tar.gz tango:www/avahi.org/tree/download/
236	rm -rf doxygen
237	$(MAKE) doxygen-run
238	ssh tango rm -rf www/avahi.org/tree/download/doxygen
239	scp -r doxygen/html tango:www/avahi.org/tree/download/doxygen
240
241DISTCLEANFILES = \
242	po/.intltool-merge-cache
243