]> git.meshlink.io Git - catta/blob - Makefile.am
adapt to newer intltool
[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         po
80
81 DX_INPUT = \
82         $(srcdir)/avahi-common/address.h \
83         $(srcdir)/avahi-common/malloc.h \
84         $(srcdir)/avahi-common/strlst.h \
85         $(srcdir)/avahi-common/alternative.h \
86         $(srcdir)/avahi-common/defs.h \
87         $(srcdir)/avahi-common/error.h \
88         $(srcdir)/avahi-common/domain.h \
89         $(srcdir)/avahi-common/watch.h \
90         $(srcdir)/avahi-common/simple-watch.h \
91         $(srcdir)/avahi-common/thread-watch.h
92
93 DX_EXAMPLE_PATH = $(srcdir)/examples
94 DX_EXAMPLE_PATTERNS = *.c
95
96 if HAVE_QT3
97 DX_INPUT += \
98         $(srcdir)/avahi-qt/qt-watch.h
99 else
100 if HAVE_QT4
101 DX_INPUT += \
102         $(srcdir)/avahi-qt/qt-watch.h
103 endif
104 endif
105
106 if HAVE_GLIB
107 DX_INPUT += \
108         $(srcdir)/avahi-glib/glib-watch.h \
109         $(srcdir)/avahi-glib/glib-malloc.h
110
111 if HAVE_GOBJECT
112 if HAVE_DBUS
113 DX_INPUT += \
114         $(srcdir)/avahi-gobject/ga-client.h \
115         $(srcdir)/avahi-gobject/ga-entry-group.h \
116         $(srcdir)/avahi-gobject/ga-enums.h \
117         $(srcdir)/avahi-gobject/ga-error.h \
118         $(srcdir)/avahi-gobject/ga-record-browser.h \
119         $(srcdir)/avahi-gobject/ga-service-browser.h \
120         $(srcdir)/avahi-gobject/ga-service-resolver.h
121 endif
122 endif
123 endif
124
125 if HAVE_DBUS
126 DX_INPUT += \
127         $(srcdir)/avahi-client/client.h \
128         $(srcdir)/avahi-client/lookup.h \
129         $(srcdir)/avahi-client/publish.h
130 endif
131
132 if HAVE_DBUS
133 if HAVE_GTK
134 DX_INPUT += \
135         $(srcdir)/avahi-ui/avahi-ui.h
136 endif
137 endif
138
139 if ENABLE_CORE_DOCS
140 DX_INPUT += \
141         $(srcdir)/avahi-core/core.h \
142         $(srcdir)/avahi-core/lookup.h \
143         $(srcdir)/avahi-core/publish.h \
144         $(srcdir)/avahi-core/rr.h \
145         $(srcdir)/avahi-core/log.h
146 endif
147
148 if HAVE_GTK
149 DX_INPUT += \
150         $(srcdir)/avahi-ui/avahi-ui.h
151 endif
152
153 pkgconfigdir = $(libdir)/pkgconfig
154 pkgconfig_DATA = avahi-core.pc
155
156 avahi-core.pc: avahi-core.pc.in
157         sed -e 's,@prefix\@,$(prefix),g' \
158             -e 's,@libdir\@,$(libdir),g' \
159             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
160
161 CLEANFILES = avahi-core.pc
162
163 if HAVE_DBUS
164
165 pkgconfig_DATA += avahi-client.pc
166
167 avahi-client.pc: avahi-client.pc.in
168         sed -e 's,@prefix\@,$(prefix),g' \
169             -e 's,@libdir\@,$(libdir),g' \
170             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
171
172 CLEANFILES += avahi-client.pc
173
174 if ENABLE_COMPAT_HOWL
175
176 pkgconfig_DATA += avahi-compat-howl.pc
177
178 avahi-compat-howl.pc: avahi-compat-howl.pc.in
179         sed -e 's,@prefix\@,$(prefix),g' \
180             -e 's,@libdir\@,$(libdir),g' \
181             -e 's,@HOWL_COMPAT_VERSION\@,$(HOWL_COMPAT_VERSION),g' $< > $@
182
183 CLEANFILES += avahi-compat-howl.pc
184
185 endif
186
187 if ENABLE_COMPAT_LIBDNS_SD
188
189 pkgconfig_DATA += avahi-compat-libdns_sd.pc
190
191 avahi-compat-libdns_sd.pc: avahi-compat-libdns_sd.pc.in
192         sed -e 's,@prefix\@,$(prefix),g' \
193             -e 's,@libdir\@,$(libdir),g' \
194             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
195
196 CLEANFILES += avahi-compat-libdns_sd.pc
197
198 endif
199
200 if HAVE_MONO
201
202 pkgconfig_DATA += avahi-sharp.pc avahi-ui-sharp.pc
203
204 avahi-sharp.pc: avahi-sharp.pc.in
205         sed -e 's,@prefix\@,$(prefix),g' \
206             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
207             -e 's,@libdir\@,$(libdir),g' $< > $@
208
209 avahi-ui-sharp.pc: avahi-ui-sharp.pc.in
210         sed -e 's,@prefix\@,$(prefix),g' \
211             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
212             -e 's,@libdir\@,$(libdir),g' $< > $@
213
214 CLEANFILES += avahi-sharp.pc avahi-ui-sharp.pc
215
216 endif
217
218 endif
219
220 if HAVE_GLIB
221
222 pkgconfig_DATA += avahi-glib.pc
223
224 avahi-glib.pc: avahi-glib.pc.in
225         sed -e 's,@prefix\@,$(prefix),g' \
226             -e 's,@libdir\@,$(libdir),g' \
227             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
228
229 CLEANFILES += avahi-glib.pc
230
231 if HAVE_GOBJECT
232
233 pkgconfig_DATA += avahi-gobject.pc
234
235 avahi-gobject.pc: avahi-gobject.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-gobject.pc
241
242 endif
243 endif
244
245 if HAVE_GTK
246 if HAVE_DBUS
247
248 pkgconfig_DATA += avahi-ui.pc
249
250 avahi-ui.pc: avahi-ui.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-ui.pc
256
257 endif
258 endif
259
260 if HAVE_QT3
261
262 pkgconfig_DATA += avahi-qt3.pc
263
264 avahi-qt3.pc: avahi-qt3.pc.in
265         sed -e 's,@prefix\@,$(prefix),g' \
266             -e 's,@libdir\@,$(libdir),g' \
267             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
268
269 CLEANFILES += avahi-qt3.pc
270
271 endif
272
273 if HAVE_QT4
274
275 pkgconfig_DATA += avahi-qt4.pc
276
277 avahi-qt4.pc: avahi-qt4.pc.in
278         sed -e 's,@prefix\@,$(prefix),g' \
279             -e 's,@libdir\@,$(libdir),g' \
280             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
281
282 CLEANFILES += avahi-qt4.pc
283
284 endif
285
286 CLEANFILES += avahi.devhelp
287
288 avahi.devhelp: doxygen-run
289         xsltproc -o $@ doxygen_to_devhelp.xsl doxygen/xml/index.xml
290
291 MOSTLYCLEANFILES = $(DX_CLEANFILES)
292
293 DISTCHECK_CONFIGURE_FLAGS = \
294         --disable-monodoc
295
296 homepage:
297         $(MAKE) -C man
298         scp avahi-daemon/*.introspect avahi-daemon/introspect.dtd avahi-daemon/introspect.xsl\
299             man/*.xml man/xmltoman.dtd man/xmltoman.xsl \
300             tango:www/avahi.org/tree/download/
301         scp avahi-$(PACKAGE_VERSION).tar.gz tango:www/avahi.org/tree/download/
302         rm -rf doxygen
303         $(MAKE) doxygen-run
304         ssh tango rm -rf www/avahi.org/tree/download/doxygen
305         scp -r doxygen/html tango:www/avahi.org/tree/download/doxygen
306
307 dist-hook:
308         if test -d .svn ; then \
309                 svn update ; \
310                 chmod u+w ${distdir}/ChangeLog || true ; \
311                 svn2cl -o ${distdir}/ChangeLog ; \
312         fi
313
314 DISTCLEANFILES = \
315         po/.intltool-merge-cache