]> git.meshlink.io Git - catta/blob - Makefile.am
* doesn't compile mono and python-avahi when dbus is not available
[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/overview.dia \
37         docs/server-states.dia \
38         docs/avahi-poll.dia \
39         avahi-core.pc.in \
40         avahi-client.pc.in \
41         avahi-glib.pc.in \
42         avahi-qt3.pc.in \
43         avahi-qt4.pc.in \
44         avahi-sharp.pc.in \
45         avahi-compat-libdns_sd.pc.in \
46         avahi-compat-howl.pc.in
47
48 SUBDIRS = \
49         common \
50         avahi-common \
51         avahi-glib \
52         avahi-core \
53         avahi-discover-standalone \
54         avahi-qt \
55         avahi-client \
56         avahi-daemon \
57         avahi-sharp \
58         initscript \
59         avahi-dnsconfd \
60         avahi-utils \
61         avahi-python \
62         examples \
63         man \
64         tests \
65         service-type-database \
66         avahi-compat-libdns_sd \
67         avahi-compat-howl 
68
69
70 DX_INPUT = \
71         $(srcdir)/avahi-core/core.h \
72         $(srcdir)/avahi-core/lookup.h \
73         $(srcdir)/avahi-core/publish.h \
74         $(srcdir)/avahi-common/address.h \
75         $(srcdir)/avahi-core/rr.h \
76         $(srcdir)/avahi-common/strlst.h \
77         $(srcdir)/avahi-common/alternative.h \
78         $(srcdir)/avahi-core/log.h \
79         $(srcdir)/avahi-common/defs.h \
80         $(srcdir)/avahi-client/client.h \
81         $(srcdir)/avahi-client/lookup.h \
82         $(srcdir)/avahi-client/publish.h \
83         $(srcdir)/avahi-common/error.h \
84         $(srcdir)/avahi-common/malloc.h \
85         $(srcdir)/avahi-common/domain.h \
86         $(srcdir)/avahi-common/watch.h \
87         $(srcdir)/avahi-common/simple-watch.h \
88         $(srcdir)/avahi-glib/glib-watch.h \
89         $(srcdir)/avahi-glib/glib-malloc.h \
90         $(srcdir)/avahi-common/timeval.h \
91         $(srcdir)/avahi-qt/qt-watch.h
92
93 DX_EXAMPLE_PATH = $(srcdir)/examples
94
95 DX_EXAMPLE_PATTERNS = *.c
96
97 pkgconfigdir = $(libdir)/pkgconfig
98 pkgconfig_DATA = avahi-core.pc
99
100 avahi-core.pc: avahi-core.pc.in
101         sed -e 's,@prefix\@,$(prefix),g' \
102             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
103
104 CLEANFILES = avahi-core.pc
105
106 if HAVE_DBUS
107
108 pkgconfig_DATA += avahi-client.pc
109
110 avahi-client.pc: avahi-client.pc.in
111         sed -e 's,@prefix\@,$(prefix),g' \
112             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
113
114 CLEANFILES += avahi-client.pc
115
116 if ENABLE_COMPAT_HOWL
117
118 pkgconfig_DATA += avahi-compat-howl.pc
119
120 avahi-compat-howl.pc: avahi-compat-howl.pc.in
121         sed -e 's,@prefix\@,$(prefix),g' \
122             -e 's,@HOWL_COMPAT_VERSION\@,$(HOWL_COMPAT_VERSION),g' $< > $@
123
124 CLEANFILES += avahi-compat-howl.pc
125
126 endif
127
128 if ENABLE_COMPAT_LIBDNS_SD
129
130 pkgconfig_DATA += avahi-compat-libdns_sd.pc
131
132 avahi-compat-libdns_sd.pc: avahi-compat-libdns_sd.pc.in
133         sed -e 's,@prefix\@,$(prefix),g' \
134             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
135
136 CLEANFILES += avahi-compat-libdns_sd.pc
137
138 endif
139
140 if HAVE_MONO
141
142 pkgconfig_DATA += avahi-sharp.pc
143
144 avahi-sharp.pc: avahi-sharp.pc.in
145         sed -e 's,@prefix\@,$(prefix),g' \
146             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
147             -e 's,@libdir\@,$(libdir),g' $< > $@
148
149 CLEANFILES += avahi-sharp.pc
150
151 endif
152
153 endif
154
155 if HAVE_GLIB
156
157 pkgconfig_DATA += avahi-glib.pc
158
159 avahi-glib.pc: avahi-glib.pc.in
160         sed -e 's,@prefix\@,$(prefix),g' \
161             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
162
163 CLEANFILES += avahi-glib.pc
164
165 endif
166
167 if HAVE_QT3
168
169 pkgconfig_DATA += avahi-qt3.pc
170
171 avahi-qt3.pc: avahi-qt3.pc.in
172         sed -e 's,@prefix\@,$(prefix),g' \
173             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
174
175 CLEANFILES += avahi-qt3.pc
176
177 endif
178
179 if HAVE_QT4
180
181 pkgconfig_DATA += avahi-qt4.pc
182
183 avahi-qt4.pc: avahi-qt4.pc.in
184         sed -e 's,@prefix\@,$(prefix),g' \
185             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
186
187 CLEANFILES += avahi-qt4.pc
188
189 endif
190
191 MOSTLYCLEANFILES = $(DX_CLEANFILES)
192
193 DISTCHECK_CONFIGURE_FLAGS = \
194         --disable-monodoc
195
196 homepage:
197         $(MAKE) -C man
198         scp avahi-daemon/*.introspect avahi-daemon/introspect.dtd avahi-daemon/introspect.xsl\
199             man/*.xml man/xmltoman.dtd man/xmltoman.xsl \
200             fdo:public_html/
201         rm -rf doxygen
202         $(MAKE) doxygen-run
203         ssh fdo rm -rf public_html/doxygen
204         scp -r doxygen/html fdo:public_html/doxygen