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