]> git.meshlink.io Git - catta/blob - Makefile.am
build avahi-gobject only when avahi-client is also built
[catta] / Makefile.am
1 # $Id$
2
3 # This file is part of avahi.
4 #
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.
9 #
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.
14 #
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
18 # USA.
19
20 ACLOCAL_AMFLAGS = -I common
21
22 include $(srcdir)/common/doxygen.mk
23
24 EXTRA_DIST = \
25         autogen.sh \
26         bootstrap.sh \
27         LICENSE \
28         $(DX_CONFIG) \
29         docs/INSTALL \
30         docs/TODO \
31         docs/NEWS \
32         docs/README \
33         docs/DBUS-API \
34         docs/AUTHORS \
35         docs/HACKING \
36         docs/API-CHANGES-0.6 \
37         docs/COMPAT-LAYERS \
38         docs/MALLOC \
39         docs/overview.dia \
40         docs/server-states.dia \
41         docs/avahi-poll.dia \
42         avahi-core.pc.in \
43         avahi-client.pc.in \
44         avahi-glib.pc.in \
45         avahi-gobject.pc.in \
46         avahi-qt3.pc.in \
47         avahi-qt4.pc.in \
48         avahi-sharp.pc.in \
49         avahi-ui-sharp.pc.in \
50         avahi-compat-libdns_sd.pc.in \
51         avahi-compat-howl.pc.in \
52         avahi-ui.pc.in \
53         doxygen_to_devhelp.xsl \
54         intltool-merge.in \
55         intltool-update.in \
56         intltool-extract.in
57
58 SUBDIRS = \
59         common \
60         avahi-common \
61         avahi-core \
62         avahi-qt \
63         avahi-client \
64         avahi-glib \
65         avahi-gobject \
66         avahi-discover-standalone \
67         avahi-daemon \
68         avahi-sharp \
69         initscript \
70         avahi-dnsconfd \
71         avahi-utils \
72         avahi-python \
73         examples \
74         man \
75         tests \
76         service-type-database \
77         avahi-compat-libdns_sd \
78         avahi-compat-howl \
79         avahi-autoipd \
80         avahi-ui \
81         avahi-ui-sharp \
82         po
83
84 DX_INPUT = \
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
95
96 DX_EXAMPLE_PATH = $(srcdir)/examples
97 DX_EXAMPLE_PATTERNS = *.c
98
99 if HAVE_QT3
100 DX_INPUT += \
101         $(srcdir)/avahi-qt/qt-watch.h
102 else
103 if HAVE_QT4
104 DX_INPUT += \
105         $(srcdir)/avahi-qt/qt-watch.h
106 endif
107 endif
108
109 if HAVE_GLIB
110 DX_INPUT += \
111         $(srcdir)/avahi-glib/glib-watch.h \
112         $(srcdir)/avahi-glib/glib-malloc.h
113
114 if HAVE_GOBJECT
115 if HAVE_DBUS
116 DX_INPUT += \
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
124 endif
125 endif
126 endif
127
128 if HAVE_DBUS
129 DX_INPUT += \
130         $(srcdir)/avahi-client/client.h \
131         $(srcdir)/avahi-client/lookup.h \
132         $(srcdir)/avahi-client/publish.h
133 endif
134
135 if HAVE_DBUS
136 if HAVE_GTK
137 DX_INPUT += \
138         $(srcdir)/avahi-ui/avahi-ui.h
139 endif
140 endif
141
142 if ENABLE_CORE_DOCS
143 DX_INPUT += \
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
149 endif
150
151 if HAVE_GTK
152 DX_INPUT += \
153         $(srcdir)/avahi-ui/avahi-ui.h
154 endif
155
156 pkgconfigdir = $(libdir)/pkgconfig
157 pkgconfig_DATA = avahi-core.pc
158
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' $< > $@
163
164 CLEANFILES = avahi-core.pc
165
166 if HAVE_DBUS
167
168 pkgconfig_DATA += avahi-client.pc
169
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' $< > $@
174
175 CLEANFILES += avahi-client.pc
176
177 if ENABLE_COMPAT_HOWL
178
179 pkgconfig_DATA += avahi-compat-howl.pc
180
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' $< > $@
185
186 CLEANFILES += avahi-compat-howl.pc
187
188 endif
189
190 if ENABLE_COMPAT_LIBDNS_SD
191
192 pkgconfig_DATA += avahi-compat-libdns_sd.pc
193
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' $< > $@
198
199 CLEANFILES += avahi-compat-libdns_sd.pc
200
201 endif
202
203 if HAVE_MONO
204
205 pkgconfig_DATA += avahi-sharp.pc avahi-ui-sharp.pc
206
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' $< > $@
211
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' $< > $@
216
217 CLEANFILES += avahi-sharp.pc avahi-ui-sharp.pc
218
219 endif
220
221 endif
222
223 if HAVE_GLIB
224
225 pkgconfig_DATA += avahi-glib.pc
226
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' $< > $@
231
232 CLEANFILES += avahi-glib.pc
233
234 if HAVE_GOBJECT
235
236 pkgconfig_DATA += avahi-gobject.pc
237
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' $< > $@
242
243 CLEANFILES += avahi-gobject.pc
244
245 endif
246 endif
247
248 if HAVE_GTK
249 if HAVE_DBUS
250
251 pkgconfig_DATA += avahi-ui.pc
252
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' $< > $@
257
258 CLEANFILES += avahi-ui.pc
259
260 endif
261 endif
262
263 if HAVE_QT3
264
265 pkgconfig_DATA += avahi-qt3.pc
266
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' $< > $@
271
272 CLEANFILES += avahi-qt3.pc
273
274 endif
275
276 if HAVE_QT4
277
278 pkgconfig_DATA += avahi-qt4.pc
279
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' $< > $@
284
285 CLEANFILES += avahi-qt4.pc
286
287 endif
288
289 CLEANFILES += avahi.devhelp
290
291 avahi.devhelp: doxygen-run
292         xsltproc -o $@ doxygen_to_devhelp.xsl doxygen/xml/index.xml
293
294 MOSTLYCLEANFILES = $(DX_CLEANFILES)
295
296 DISTCHECK_CONFIGURE_FLAGS = \
297         --disable-monodoc
298
299 homepage:
300         $(MAKE) -C man
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/
305         rm -rf doxygen
306         $(MAKE) doxygen-run
307         ssh tango rm -rf www/avahi.org/tree/download/doxygen
308         scp -r doxygen/html tango:www/avahi.org/tree/download/doxygen
309
310 dist-hook:
311         if test -d .svn ; then \
312                 svn update ; \
313                 chmod u+w ${distdir}/ChangeLog || true ; \
314                 svn2cl -o ${distdir}/ChangeLog ; \
315         fi
316
317 DISTCLEANFILES = \
318         intltool-extract \
319         intltool-merge \
320         intltool-update \
321         po/.intltool-merge-cache