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