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