]> git.meshlink.io Git - catta/blob - Makefile.am
Commit first version of avahi-ui and zssh
[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-qt3.pc.in \
46         avahi-qt4.pc.in \
47         avahi-sharp.pc.in \
48         avahi-compat-libdns_sd.pc.in \
49         avahi-compat-howl.pc.in
50
51 SUBDIRS = \
52         common \
53         avahi-common \
54         avahi-glib \
55         avahi-core \
56         avahi-discover-standalone \
57         avahi-qt \
58         avahi-client \
59         avahi-daemon \
60         avahi-sharp \
61         initscript \
62         avahi-dnsconfd \
63         avahi-utils \
64         avahi-python \
65         examples \
66         man \
67         tests \
68         service-type-database \
69         avahi-compat-libdns_sd \
70         avahi-compat-howl \
71         avahi-autoipd \
72         avahi-ui
73
74 DX_INPUT = \
75         $(srcdir)/avahi-common/address.h \
76         $(srcdir)/avahi-common/strlst.h \
77         $(srcdir)/avahi-common/alternative.h \
78         $(srcdir)/avahi-common/defs.h \
79         $(srcdir)/avahi-common/error.h \
80         $(srcdir)/avahi-common/malloc.h \
81         $(srcdir)/avahi-common/domain.h \
82         $(srcdir)/avahi-common/watch.h \
83         $(srcdir)/avahi-common/simple-watch.h \
84         $(srcdir)/avahi-common/thread-watch.h \
85         $(srcdir)/avahi-common/timeval.h
86
87 DX_EXAMPLE_PATH = $(srcdir)/examples
88 DX_EXAMPLE_PATTERNS = *.c
89
90 if HAVE_QT3
91 DX_INPUT += \
92         $(srcdir)/avahi-qt/qt-watch.h
93 else
94 if HAVE_QT4
95 DX_INPUT += \
96         $(srcdir)/avahi-qt/qt-watch.h
97 endif
98 endif
99
100 if HAVE_GLIB
101 DX_INPUT += \
102         $(srcdir)/avahi-glib/glib-watch.h \
103         $(srcdir)/avahi-glib/glib-malloc.h
104 endif
105
106 if HAVE_DBUS
107 DX_INPUT += \
108         $(srcdir)/avahi-client/client.h \
109         $(srcdir)/avahi-client/lookup.h \
110         $(srcdir)/avahi-client/publish.h
111 endif
112
113 if ENABLE_CORE_DOCS
114 DX_INPUT += \
115         $(srcdir)/avahi-core/core.h \
116         $(srcdir)/avahi-core/lookup.h \
117         $(srcdir)/avahi-core/publish.h \
118         $(srcdir)/avahi-core/rr.h \
119         $(srcdir)/avahi-core/log.h
120 endif
121
122 if HAVE_GTK
123 DX_INPUT += \
124         $(srcdir)/avahi-ui/avahi-ui.h
125 endif
126
127 pkgconfigdir = $(libdir)/pkgconfig
128 pkgconfig_DATA = avahi-core.pc
129
130 avahi-core.pc: avahi-core.pc.in
131         sed -e 's,@prefix\@,$(prefix),g' \
132             -e 's,@libdir\@,$(libdir),g' \
133             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
134
135 CLEANFILES = avahi-core.pc
136
137 if HAVE_DBUS
138
139 pkgconfig_DATA += avahi-client.pc
140
141 avahi-client.pc: avahi-client.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-client.pc
147
148 if ENABLE_COMPAT_HOWL
149
150 pkgconfig_DATA += avahi-compat-howl.pc
151
152 avahi-compat-howl.pc: avahi-compat-howl.pc.in
153         sed -e 's,@prefix\@,$(prefix),g' \
154             -e 's,@libdir\@,$(libdir),g' \
155             -e 's,@HOWL_COMPAT_VERSION\@,$(HOWL_COMPAT_VERSION),g' $< > $@
156
157 CLEANFILES += avahi-compat-howl.pc
158
159 endif
160
161 if ENABLE_COMPAT_LIBDNS_SD
162
163 pkgconfig_DATA += avahi-compat-libdns_sd.pc
164
165 avahi-compat-libdns_sd.pc: avahi-compat-libdns_sd.pc.in
166         sed -e 's,@prefix\@,$(prefix),g' \
167             -e 's,@libdir\@,$(libdir),g' \
168             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
169
170 CLEANFILES += avahi-compat-libdns_sd.pc
171
172 endif
173
174 if HAVE_MONO
175
176 pkgconfig_DATA += avahi-sharp.pc
177
178 avahi-sharp.pc: avahi-sharp.pc.in
179         sed -e 's,@prefix\@,$(prefix),g' \
180             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
181             -e 's,@libdir\@,$(libdir),g' $< > $@
182
183 CLEANFILES += avahi-sharp.pc
184
185 endif
186
187 endif
188
189 if HAVE_GLIB
190
191 pkgconfig_DATA += avahi-glib.pc
192
193 avahi-glib.pc: avahi-glib.pc.in
194         sed -e 's,@prefix\@,$(prefix),g' \
195             -e 's,@libdir\@,$(libdir),g' \
196             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
197
198 CLEANFILES += avahi-glib.pc
199
200 endif
201
202 if HAVE_GTK
203
204 pkgconfig_DATA += avahi-gtk.pc
205
206 avahi-gtk.pc: avahi-gtk.pc.in
207         sed -e 's,@prefix\@,$(prefix),g' \
208             -e 's,@libdir\@,$(libdir),g' \
209             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
210
211 CLEANFILES += avahi-gtk.pc
212
213 endif
214
215 if HAVE_QT3
216
217 pkgconfig_DATA += avahi-qt3.pc
218
219 avahi-qt3.pc: avahi-qt3.pc.in
220         sed -e 's,@prefix\@,$(prefix),g' \
221             -e 's,@libdir\@,$(libdir),g' \
222             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
223
224 CLEANFILES += avahi-qt3.pc
225
226 endif
227
228 if HAVE_QT4
229
230 pkgconfig_DATA += avahi-qt4.pc
231
232 avahi-qt4.pc: avahi-qt4.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-qt4.pc
238
239 endif
240
241 MOSTLYCLEANFILES = $(DX_CLEANFILES)
242
243 DISTCHECK_CONFIGURE_FLAGS = \
244         --disable-monodoc
245
246 homepage:
247         $(MAKE) -C man
248         scp avahi-daemon/*.introspect avahi-daemon/introspect.dtd avahi-daemon/introspect.xsl\
249             man/*.xml man/xmltoman.dtd man/xmltoman.xsl \
250             tango:www/avahi.org/tree/download/
251         scp avahi-$(PACKAGE_VERSION).tar.gz tango:www/avahi.org/tree/download/
252         rm -rf doxygen
253         $(MAKE) doxygen-run
254         ssh tango rm -rf www/avahi.org/tree/download/doxygen
255         scp -r doxygen/html tango:www/avahi.org/tree/download/doxygen