]> git.meshlink.io Git - catta/blob - Makefile.am
split off libavahi-gobject into its own directory
[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
55 SUBDIRS = \
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
80 DX_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
92 DX_EXAMPLE_PATH = $(srcdir)/examples
93 DX_EXAMPLE_PATTERNS = *.c
94
95 if HAVE_QT3
96 DX_INPUT += \
97         $(srcdir)/avahi-qt/qt-watch.h
98 else
99 if HAVE_QT4
100 DX_INPUT += \
101         $(srcdir)/avahi-qt/qt-watch.h
102 endif
103 endif
104
105 if HAVE_GLIB
106 DX_INPUT += \
107         $(srcdir)/avahi-glib/glib-watch.h \
108         $(srcdir)/avahi-glib/glib-malloc.h
109 endif
110
111 if HAVE_DBUS
112 DX_INPUT += \
113         $(srcdir)/avahi-client/client.h \
114         $(srcdir)/avahi-client/lookup.h \
115         $(srcdir)/avahi-client/publish.h
116 endif
117
118 if HAVE_DBUS
119 if HAVE_GTK
120 DX_INPUT += \
121         $(srcdir)/avahi-ui/avahi-ui.h
122 endif
123 endif
124
125 if ENABLE_CORE_DOCS
126 DX_INPUT += \
127         $(srcdir)/avahi-core/core.h \
128         $(srcdir)/avahi-core/lookup.h \
129         $(srcdir)/avahi-core/publish.h \
130         $(srcdir)/avahi-core/rr.h \
131         $(srcdir)/avahi-core/log.h
132 endif
133
134 if HAVE_GTK
135 DX_INPUT += \
136         $(srcdir)/avahi-ui/avahi-ui.h
137 endif
138
139 pkgconfigdir = $(libdir)/pkgconfig
140 pkgconfig_DATA = avahi-core.pc
141
142 avahi-core.pc: avahi-core.pc.in
143         sed -e 's,@prefix\@,$(prefix),g' \
144             -e 's,@libdir\@,$(libdir),g' \
145             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
146
147 CLEANFILES = avahi-core.pc
148
149 if HAVE_DBUS
150
151 pkgconfig_DATA += avahi-client.pc
152
153 avahi-client.pc: avahi-client.pc.in
154         sed -e 's,@prefix\@,$(prefix),g' \
155             -e 's,@libdir\@,$(libdir),g' \
156             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
157
158 CLEANFILES += avahi-client.pc
159
160 if ENABLE_COMPAT_HOWL
161
162 pkgconfig_DATA += avahi-compat-howl.pc
163
164 avahi-compat-howl.pc: avahi-compat-howl.pc.in
165         sed -e 's,@prefix\@,$(prefix),g' \
166             -e 's,@libdir\@,$(libdir),g' \
167             -e 's,@HOWL_COMPAT_VERSION\@,$(HOWL_COMPAT_VERSION),g' $< > $@
168
169 CLEANFILES += avahi-compat-howl.pc
170
171 endif
172
173 if ENABLE_COMPAT_LIBDNS_SD
174
175 pkgconfig_DATA += avahi-compat-libdns_sd.pc
176
177 avahi-compat-libdns_sd.pc: avahi-compat-libdns_sd.pc.in
178         sed -e 's,@prefix\@,$(prefix),g' \
179             -e 's,@libdir\@,$(libdir),g' \
180             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
181
182 CLEANFILES += avahi-compat-libdns_sd.pc
183
184 endif
185
186 if HAVE_MONO
187
188 pkgconfig_DATA += avahi-sharp.pc avahi-ui-sharp.pc
189
190 avahi-sharp.pc: avahi-sharp.pc.in
191         sed -e 's,@prefix\@,$(prefix),g' \
192             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
193             -e 's,@libdir\@,$(libdir),g' $< > $@
194
195 avahi-ui-sharp.pc: avahi-ui-sharp.pc.in
196         sed -e 's,@prefix\@,$(prefix),g' \
197             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
198             -e 's,@libdir\@,$(libdir),g' $< > $@
199
200 CLEANFILES += avahi-sharp.pc avahi-ui-sharp.pc
201
202 endif
203
204 endif
205
206 if HAVE_GLIB
207
208 pkgconfig_DATA += avahi-glib.pc
209
210 avahi-glib.pc: avahi-glib.pc.in
211         sed -e 's,@prefix\@,$(prefix),g' \
212             -e 's,@libdir\@,$(libdir),g' \
213             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
214
215 CLEANFILES += avahi-glib.pc
216
217 if HAVE_GOBJECT
218
219 pkgconfig_DATA += avahi-gobject.pc
220
221 avahi-gobject.pc: avahi-gobject.pc.in
222         sed -e 's,@prefix\@,$(prefix),g' \
223             -e 's,@libdir\@,$(libdir),g' \
224             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
225
226 CLEANFILES += avahi-gobject.pc
227
228 endif
229 endif
230
231 if HAVE_GTK
232 if HAVE_DBUS
233
234 pkgconfig_DATA += avahi-ui.pc
235
236 avahi-ui.pc: avahi-ui.pc.in
237         sed -e 's,@prefix\@,$(prefix),g' \
238             -e 's,@libdir\@,$(libdir),g' \
239             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
240
241 CLEANFILES += avahi-ui.pc
242
243 endif
244 endif
245
246 if HAVE_QT3
247
248 pkgconfig_DATA += avahi-qt3.pc
249
250 avahi-qt3.pc: avahi-qt3.pc.in
251         sed -e 's,@prefix\@,$(prefix),g' \
252             -e 's,@libdir\@,$(libdir),g' \
253             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
254
255 CLEANFILES += avahi-qt3.pc
256
257 endif
258
259 if HAVE_QT4
260
261 pkgconfig_DATA += avahi-qt4.pc
262
263 avahi-qt4.pc: avahi-qt4.pc.in
264         sed -e 's,@prefix\@,$(prefix),g' \
265             -e 's,@libdir\@,$(libdir),g' \
266             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
267
268 CLEANFILES += avahi-qt4.pc
269
270 endif
271
272 CLEANFILES += avahi.devhelp
273
274 avahi.devhelp: doxygen-run
275         xsltproc -o $@ doxygen_to_devhelp.xsl doxygen/xml/index.xml
276
277 MOSTLYCLEANFILES = $(DX_CLEANFILES)
278
279 DISTCHECK_CONFIGURE_FLAGS = \
280         --disable-monodoc
281
282 homepage:
283         $(MAKE) -C man
284         scp avahi-daemon/*.introspect avahi-daemon/introspect.dtd avahi-daemon/introspect.xsl\
285             man/*.xml man/xmltoman.dtd man/xmltoman.xsl \
286             tango:www/avahi.org/tree/download/
287         scp avahi-$(PACKAGE_VERSION).tar.gz tango:www/avahi.org/tree/download/
288         rm -rf doxygen
289         $(MAKE) doxygen-run
290         ssh tango rm -rf www/avahi.org/tree/download/doxygen
291         scp -r doxygen/html tango:www/avahi.org/tree/download/doxygen