]> git.meshlink.io Git - catta/blob - Makefile.am
build-sys: get rid of old cruft
[catta] / Makefile.am
1 # This file is part of avahi.
2 #
3 # avahi is free software; you can redistribute it and/or modify it
4 # under the terms of the GNU Lesser General Public License as
5 # published by the Free Software Foundation; either version 2 of the
6 # License, or (at your option) any later version.
7 #
8 # avahi is distributed in the hope that it will be useful, but WITHOUT
9 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
10 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
11 # License for more details.
12 #
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with avahi; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
16 # USA.
17
18 ACLOCAL_AMFLAGS = -I common
19
20 include $(srcdir)/common/doxygen.mk
21
22 EXTRA_DIST = \
23         autogen.sh \
24         bootstrap.sh \
25         LICENSE \
26         $(DX_CONFIG) \
27         docs/INSTALL \
28         docs/TODO \
29         docs/NEWS \
30         docs/README \
31         docs/DBUS-API \
32         docs/AUTHORS \
33         docs/HACKING \
34         docs/API-CHANGES-0.6 \
35         docs/COMPAT-LAYERS \
36         docs/MALLOC \
37         docs/overview.dia \
38         docs/server-states.dia \
39         docs/avahi-poll.dia \
40         avahi-core.pc.in \
41         avahi-client.pc.in \
42         avahi-glib.pc.in \
43         avahi-gobject.pc.in \
44         avahi-qt3.pc.in \
45         avahi-qt4.pc.in \
46         avahi-sharp.pc.in \
47         avahi-ui-sharp.pc.in \
48         avahi-compat-libdns_sd.pc.in \
49         avahi-compat-howl.pc.in \
50         avahi-ui.pc.in \
51         avahi-ui-gtk3.pc.in \
52         doxygen_to_devhelp.xsl
53
54 SUBDIRS = \
55         common \
56         avahi-common \
57         avahi-core \
58         avahi-qt \
59         avahi-client \
60         avahi-glib \
61         avahi-gobject \
62         avahi-discover-standalone \
63         avahi-daemon \
64         avahi-sharp \
65         initscript \
66         avahi-dnsconfd \
67         avahi-utils \
68         avahi-python \
69         examples \
70         man \
71         tests \
72         service-type-database \
73         avahi-compat-libdns_sd \
74         avahi-compat-howl \
75         avahi-autoipd \
76         avahi-ui \
77         avahi-ui-sharp \
78         po
79
80 DX_INPUT = \
81         $(srcdir)/avahi-common/address.h \
82         $(srcdir)/avahi-common/malloc.h \
83         $(srcdir)/avahi-common/strlst.h \
84         $(srcdir)/avahi-common/alternative.h \
85         $(srcdir)/avahi-common/defs.h \
86         $(srcdir)/avahi-common/error.h \
87         $(srcdir)/avahi-common/domain.h \
88         $(srcdir)/avahi-common/watch.h \
89         $(srcdir)/avahi-common/simple-watch.h \
90         $(srcdir)/avahi-common/thread-watch.h
91
92 DX_EXAMPLE_PATH = $(srcdir)/examples
93 DX_EXAMPLE_PATTERNS = *.c
94
95 if HAVE_QT3
96 DX_INPUT += \
97         $(srcdir)/avahi-qt/qt-watch.h
98 else
99 if HAVE_QT4
100 DX_INPUT += \
101         $(srcdir)/avahi-qt/qt-watch.h
102 endif
103 endif
104
105 if HAVE_GLIB
106 DX_INPUT += \
107         $(srcdir)/avahi-glib/glib-watch.h \
108         $(srcdir)/avahi-glib/glib-malloc.h
109
110 if HAVE_GOBJECT
111 if HAVE_DBUS
112 DX_INPUT += \
113         $(srcdir)/avahi-gobject/ga-client.h \
114         $(srcdir)/avahi-gobject/ga-entry-group.h \
115         $(srcdir)/avahi-gobject/ga-enums.h \
116         $(srcdir)/avahi-gobject/ga-error.h \
117         $(srcdir)/avahi-gobject/ga-record-browser.h \
118         $(srcdir)/avahi-gobject/ga-service-browser.h \
119         $(srcdir)/avahi-gobject/ga-service-resolver.h
120 endif
121 endif
122 endif
123
124 if HAVE_DBUS
125 DX_INPUT += \
126         $(srcdir)/avahi-client/client.h \
127         $(srcdir)/avahi-client/lookup.h \
128         $(srcdir)/avahi-client/publish.h
129 endif
130
131 if HAVE_DBUS
132 if HAVE_GTK
133 DX_INPUT += \
134         $(srcdir)/avahi-ui/avahi-ui.h
135 endif
136 endif
137
138 if ENABLE_CORE_DOCS
139 DX_INPUT += \
140         $(srcdir)/avahi-core/core.h \
141         $(srcdir)/avahi-core/lookup.h \
142         $(srcdir)/avahi-core/publish.h \
143         $(srcdir)/avahi-core/rr.h \
144         $(srcdir)/avahi-core/log.h
145 endif
146
147 if HAVE_GTK
148 DX_INPUT += \
149         $(srcdir)/avahi-ui/avahi-ui.h
150 endif
151
152 pkgconfigdir = $(libdir)/pkgconfig
153
154 %.pc: %.pc.in
155         $(AM_V_GEN)sed -e 's,@prefix\@,$(prefix),g' \
156             -e 's,@libdir\@,$(libdir),g' \
157             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
158
159 pkgconfig_DATA = avahi-core.pc
160 CLEANFILES = avahi-core.pc
161
162 if HAVE_DBUS
163 pkgconfig_DATA += avahi-client.pc
164 CLEANFILES += avahi-client.pc
165
166 if ENABLE_COMPAT_HOWL
167 pkgconfig_DATA += avahi-compat-howl.pc
168 CLEANFILES += avahi-compat-howl.pc
169 endif
170
171 if ENABLE_COMPAT_LIBDNS_SD
172 pkgconfig_DATA += avahi-compat-libdns_sd.pc
173 CLEANFILES += avahi-compat-libdns_sd.pc
174 endif
175
176 if HAVE_MONO
177 pkgconfig_DATA += avahi-sharp.pc avahi-ui-sharp.pc
178 CLEANFILES += avahi-sharp.pc avahi-ui-sharp.pc
179 endif
180
181 endif
182
183 if HAVE_GLIB
184 pkgconfig_DATA += avahi-glib.pc
185 CLEANFILES += avahi-glib.pc
186
187 if HAVE_GOBJECT
188 pkgconfig_DATA += avahi-gobject.pc
189 CLEANFILES += avahi-gobject.pc
190 endif
191 endif
192
193 if HAVE_GTK
194 if HAVE_DBUS
195 pkgconfig_DATA += avahi-ui.pc
196 CLEANFILES += avahi-ui.pc
197 endif
198 endif
199
200 if HAVE_GTK3
201 if HAVE_DBUS
202 pkgconfig_DATA += avahi-ui-gtk3.pc
203 CLEANFILES += avahi-ui-gtk3.pc
204 endif
205 endif
206
207 if HAVE_QT3
208 pkgconfig_DATA += avahi-qt3.pc
209 CLEANFILES += avahi-qt3.pc
210 endif
211
212 if HAVE_QT4
213 pkgconfig_DATA += avahi-qt4.pc
214 CLEANFILES += avahi-qt4.pc
215 endif
216
217 CLEANFILES += avahi.devhelp
218
219 avahi.devhelp: doxygen-run
220         xsltproc -o $@ doxygen_to_devhelp.xsl doxygen/xml/index.xml
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         scp avahi-$(PACKAGE_VERSION).tar.gz tango:www/avahi.org/tree/download/
233         rm -rf doxygen
234         $(MAKE) doxygen-run
235         ssh tango rm -rf www/avahi.org/tree/download/doxygen
236         scp -r doxygen/html tango:www/avahi.org/tree/download/doxygen
237
238 DISTCLEANFILES = \
239         po/.intltool-merge-cache