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