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