]> git.meshlink.io Git - catta/blob - Makefile.am
split of libavahi-gobject, since people already starting complaining about the additi...
[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-discover-standalone \
63         avahi-daemon \
64         avahi-sharp \
65         initscript \
66         avahi-dnsconfd \
67         avahi-utils \
68         avahi-python \
69         examples \
70         man \
71         tests \
72         service-type-database \
73         avahi-compat-libdns_sd \
74         avahi-compat-howl \
75         avahi-autoipd \
76         avahi-ui \
77         avahi-ui-sharp
78
79 DX_INPUT = \
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
90
91 DX_EXAMPLE_PATH = $(srcdir)/examples
92 DX_EXAMPLE_PATTERNS = *.c
93
94 if HAVE_QT3
95 DX_INPUT += \
96         $(srcdir)/avahi-qt/qt-watch.h
97 else
98 if HAVE_QT4
99 DX_INPUT += \
100         $(srcdir)/avahi-qt/qt-watch.h
101 endif
102 endif
103
104 if HAVE_GLIB
105 DX_INPUT += \
106         $(srcdir)/avahi-glib/glib-watch.h \
107         $(srcdir)/avahi-glib/glib-malloc.h
108 endif
109
110 if HAVE_DBUS
111 DX_INPUT += \
112         $(srcdir)/avahi-client/client.h \
113         $(srcdir)/avahi-client/lookup.h \
114         $(srcdir)/avahi-client/publish.h
115 endif
116
117 if HAVE_DBUS
118 if HAVE_GTK
119 DX_INPUT += \
120         $(srcdir)/avahi-ui/avahi-ui.h
121 endif
122 endif
123
124 if ENABLE_CORE_DOCS
125 DX_INPUT += \
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
131 endif
132
133 if HAVE_GTK
134 DX_INPUT += \
135         $(srcdir)/avahi-ui/avahi-ui.h
136 endif
137
138 pkgconfigdir = $(libdir)/pkgconfig
139 pkgconfig_DATA = avahi-core.pc
140
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' $< > $@
145
146 CLEANFILES = avahi-core.pc
147
148 if HAVE_DBUS
149
150 pkgconfig_DATA += avahi-client.pc
151
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' $< > $@
156
157 CLEANFILES += avahi-client.pc
158
159 if ENABLE_COMPAT_HOWL
160
161 pkgconfig_DATA += avahi-compat-howl.pc
162
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' $< > $@
167
168 CLEANFILES += avahi-compat-howl.pc
169
170 endif
171
172 if ENABLE_COMPAT_LIBDNS_SD
173
174 pkgconfig_DATA += avahi-compat-libdns_sd.pc
175
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' $< > $@
180
181 CLEANFILES += avahi-compat-libdns_sd.pc
182
183 endif
184
185 if HAVE_MONO
186
187 pkgconfig_DATA += avahi-sharp.pc avahi-ui-sharp.pc
188
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' $< > $@
193
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' $< > $@
198
199 CLEANFILES += avahi-sharp.pc avahi-ui-sharp.pc
200
201 endif
202
203 endif
204
205 if HAVE_GLIB
206
207 pkgconfig_DATA += avahi-glib.pc
208
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' $< > $@
213
214 CLEANFILES += avahi-glib.pc
215
216 if HAVE_GOBJECT
217
218 pkgconfig_DATA += avahi-gobject.pc
219
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' $< > $@
224
225 CLEANFILES += avahi-gobject.pc
226
227 endif
228 endif
229
230 if HAVE_GTK
231 if HAVE_DBUS
232
233 pkgconfig_DATA += avahi-ui.pc
234
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' $< > $@
239
240 CLEANFILES += avahi-ui.pc
241
242 endif
243 endif
244
245 if HAVE_QT3
246
247 pkgconfig_DATA += avahi-qt3.pc
248
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' $< > $@
253
254 CLEANFILES += avahi-qt3.pc
255
256 endif
257
258 if HAVE_QT4
259
260 pkgconfig_DATA += avahi-qt4.pc
261
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' $< > $@
266
267 CLEANFILES += avahi-qt4.pc
268
269 endif
270
271 CLEANFILES += avahi.devhelp
272
273 avahi.devhelp: doxygen-run
274         xsltproc -o $@ doxygen_to_devhelp.xsl doxygen/xml/index.xml
275
276 MOSTLYCLEANFILES = $(DX_CLEANFILES)
277
278 DISTCHECK_CONFIGURE_FLAGS = \
279         --disable-monodoc
280
281 homepage:
282         $(MAKE) -C man
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/
287         rm -rf doxygen
288         $(MAKE) doxygen-run
289         ssh tango rm -rf www/avahi.org/tree/download/doxygen
290         scp -r doxygen/html tango:www/avahi.org/tree/download/doxygen