]> git.meshlink.io Git - catta/blob - Makefile.am
build docs for avahi-core only if --enable-core-docs was passed to configure. Build...
[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
72
73 DX_INPUT = \
74         $(srcdir)/avahi-common/address.h \
75         $(srcdir)/avahi-common/strlst.h \
76         $(srcdir)/avahi-common/alternative.h \
77         $(srcdir)/avahi-common/defs.h \
78         $(srcdir)/avahi-common/error.h \
79         $(srcdir)/avahi-common/malloc.h \
80         $(srcdir)/avahi-common/domain.h \
81         $(srcdir)/avahi-common/watch.h \
82         $(srcdir)/avahi-common/simple-watch.h \
83         $(srcdir)/avahi-common/thread-watch.h \
84         $(srcdir)/avahi-common/timeval.h
85
86 DX_EXAMPLE_PATH = $(srcdir)/examples
87 DX_EXAMPLE_PATTERNS = *.c
88
89 if HAVE_QT3
90 DX_INPUT += \
91         $(srcdir)/avahi-qt/qt-watch.h
92 else
93 if HAVE_QT4
94 DX_INPUT += \
95         $(srcdir)/avahi-qt/qt-watch.h
96 endif
97 endif
98
99 if HAVE_GLIB
100 DX_INPUT += \
101         $(srcdir)/avahi-glib/glib-watch.h \
102         $(srcdir)/avahi-glib/glib-malloc.h
103 endif
104
105 if HAVE_DBUS
106 DX_INPUT += \
107         $(srcdir)/avahi-client/client.h \
108         $(srcdir)/avahi-client/lookup.h \
109         $(srcdir)/avahi-client/publish.h
110 endif
111
112 if ENABLE_CORE_DOCS
113 DX_INPUT += \
114         $(srcdir)/avahi-core/core.h \
115         $(srcdir)/avahi-core/lookup.h \
116         $(srcdir)/avahi-core/publish.h \
117         $(srcdir)/avahi-core/rr.h \
118         $(srcdir)/avahi-core/log.h
119 endif
120
121 pkgconfigdir = $(libdir)/pkgconfig
122 pkgconfig_DATA = avahi-core.pc
123
124 avahi-core.pc: avahi-core.pc.in
125         sed -e 's,@prefix\@,$(prefix),g' \
126             -e 's,@libdir\@,$(libdir),g' \
127             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
128
129 CLEANFILES = avahi-core.pc
130
131 if HAVE_DBUS
132
133 pkgconfig_DATA += avahi-client.pc
134
135 avahi-client.pc: avahi-client.pc.in
136         sed -e 's,@prefix\@,$(prefix),g' \
137             -e 's,@libdir\@,$(libdir),g' \
138             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
139
140 CLEANFILES += avahi-client.pc
141
142 if ENABLE_COMPAT_HOWL
143
144 pkgconfig_DATA += avahi-compat-howl.pc
145
146 avahi-compat-howl.pc: avahi-compat-howl.pc.in
147         sed -e 's,@prefix\@,$(prefix),g' \
148             -e 's,@libdir\@,$(libdir),g' \
149             -e 's,@HOWL_COMPAT_VERSION\@,$(HOWL_COMPAT_VERSION),g' $< > $@
150
151 CLEANFILES += avahi-compat-howl.pc
152
153 endif
154
155 if ENABLE_COMPAT_LIBDNS_SD
156
157 pkgconfig_DATA += avahi-compat-libdns_sd.pc
158
159 avahi-compat-libdns_sd.pc: avahi-compat-libdns_sd.pc.in
160         sed -e 's,@prefix\@,$(prefix),g' \
161             -e 's,@libdir\@,$(libdir),g' \
162             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
163
164 CLEANFILES += avahi-compat-libdns_sd.pc
165
166 endif
167
168 if HAVE_MONO
169
170 pkgconfig_DATA += avahi-sharp.pc
171
172 avahi-sharp.pc: avahi-sharp.pc.in
173         sed -e 's,@prefix\@,$(prefix),g' \
174             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
175             -e 's,@libdir\@,$(libdir),g' $< > $@
176
177 CLEANFILES += avahi-sharp.pc
178
179 endif
180
181 endif
182
183 if HAVE_GLIB
184
185 pkgconfig_DATA += avahi-glib.pc
186
187 avahi-glib.pc: avahi-glib.pc.in
188         sed -e 's,@prefix\@,$(prefix),g' \
189             -e 's,@libdir\@,$(libdir),g' \
190             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
191
192 CLEANFILES += avahi-glib.pc
193
194 endif
195
196 if HAVE_QT3
197
198 pkgconfig_DATA += avahi-qt3.pc
199
200 avahi-qt3.pc: avahi-qt3.pc.in
201         sed -e 's,@prefix\@,$(prefix),g' \
202             -e 's,@libdir\@,$(libdir),g' \
203             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
204
205 CLEANFILES += avahi-qt3.pc
206
207 endif
208
209 if HAVE_QT4
210
211 pkgconfig_DATA += avahi-qt4.pc
212
213 avahi-qt4.pc: avahi-qt4.pc.in
214         sed -e 's,@prefix\@,$(prefix),g' \
215             -e 's,@libdir\@,$(libdir),g' \
216             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
217
218 CLEANFILES += avahi-qt4.pc
219
220 endif
221
222 MOSTLYCLEANFILES = $(DX_CLEANFILES)
223
224 DISTCHECK_CONFIGURE_FLAGS = \
225         --disable-monodoc
226
227 homepage:
228         $(MAKE) -C man
229         scp avahi-daemon/*.introspect avahi-daemon/introspect.dtd avahi-daemon/introspect.xsl\
230             man/*.xml man/xmltoman.dtd man/xmltoman.xsl \
231             tango:www/avahi.org/tree/download/
232         rm -rf doxygen
233         $(MAKE) doxygen-run
234         ssh tango rm -rf www/avahi.org/tree/download/doxygen
235         scp -r doxygen/html tango:www/avahi.org/tree/download/doxygen