]> git.meshlink.io Git - catta/blob - Makefile.am
add a makefile rule for zssh.exe, and add a .pc file for avahi-ui-sharp
[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/strlst.h \
80         $(srcdir)/avahi-common/alternative.h \
81         $(srcdir)/avahi-common/defs.h \
82         $(srcdir)/avahi-common/error.h \
83         $(srcdir)/avahi-common/malloc.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         $(srcdir)/avahi-common/timeval.h
89
90 DX_EXAMPLE_PATH = $(srcdir)/examples
91 DX_EXAMPLE_PATTERNS = *.c
92
93 if HAVE_QT3
94 DX_INPUT += \
95         $(srcdir)/avahi-qt/qt-watch.h
96 else
97 if HAVE_QT4
98 DX_INPUT += \
99         $(srcdir)/avahi-qt/qt-watch.h
100 endif
101 endif
102
103 if HAVE_GLIB
104 DX_INPUT += \
105         $(srcdir)/avahi-glib/glib-watch.h \
106         $(srcdir)/avahi-glib/glib-malloc.h
107 endif
108
109 if HAVE_DBUS
110 DX_INPUT += \
111         $(srcdir)/avahi-client/client.h \
112         $(srcdir)/avahi-client/lookup.h \
113         $(srcdir)/avahi-client/publish.h
114 endif
115
116 if HAVE_DBUS
117 if HAVE_GTK
118 DX_INPUT += \
119         $(srcdir)/avahi-ui/avahi-ui.h
120 endif
121 endif
122
123 if ENABLE_CORE_DOCS
124 DX_INPUT += \
125         $(srcdir)/avahi-core/core.h \
126         $(srcdir)/avahi-core/lookup.h \
127         $(srcdir)/avahi-core/publish.h \
128         $(srcdir)/avahi-core/rr.h \
129         $(srcdir)/avahi-core/log.h
130 endif
131
132 if HAVE_GTK
133 DX_INPUT += \
134         $(srcdir)/avahi-ui/avahi-ui.h
135 endif
136
137 pkgconfigdir = $(libdir)/pkgconfig
138 pkgconfig_DATA = avahi-core.pc
139
140 avahi-core.pc: avahi-core.pc.in
141         sed -e 's,@prefix\@,$(prefix),g' \
142             -e 's,@libdir\@,$(libdir),g' \
143             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
144
145 CLEANFILES = avahi-core.pc
146
147 if HAVE_DBUS
148
149 pkgconfig_DATA += avahi-client.pc
150
151 avahi-client.pc: avahi-client.pc.in
152         sed -e 's,@prefix\@,$(prefix),g' \
153             -e 's,@libdir\@,$(libdir),g' \
154             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
155
156 CLEANFILES += avahi-client.pc
157
158 if ENABLE_COMPAT_HOWL
159
160 pkgconfig_DATA += avahi-compat-howl.pc
161
162 avahi-compat-howl.pc: avahi-compat-howl.pc.in
163         sed -e 's,@prefix\@,$(prefix),g' \
164             -e 's,@libdir\@,$(libdir),g' \
165             -e 's,@HOWL_COMPAT_VERSION\@,$(HOWL_COMPAT_VERSION),g' $< > $@
166
167 CLEANFILES += avahi-compat-howl.pc
168
169 endif
170
171 if ENABLE_COMPAT_LIBDNS_SD
172
173 pkgconfig_DATA += avahi-compat-libdns_sd.pc
174
175 avahi-compat-libdns_sd.pc: avahi-compat-libdns_sd.pc.in
176         sed -e 's,@prefix\@,$(prefix),g' \
177             -e 's,@libdir\@,$(libdir),g' \
178             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
179
180 CLEANFILES += avahi-compat-libdns_sd.pc
181
182 endif
183
184 if HAVE_MONO
185
186 pkgconfig_DATA += avahi-sharp.pc avahi-ui-sharp.pc
187
188 avahi-sharp.pc: avahi-sharp.pc.in
189         sed -e 's,@prefix\@,$(prefix),g' \
190             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
191             -e 's,@libdir\@,$(libdir),g' $< > $@
192
193 avahi-ui-sharp.pc: avahi-ui-sharp.pc.in
194         sed -e 's,@prefix\@,$(prefix),g' \
195             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
196             -e 's,@libdir\@,$(libdir),g' $< > $@
197
198 CLEANFILES += avahi-sharp.pc avahi-ui-sharp.pc
199
200 endif
201
202 endif
203
204 if HAVE_GLIB
205
206 pkgconfig_DATA += avahi-glib.pc
207
208 avahi-glib.pc: avahi-glib.pc.in
209         sed -e 's,@prefix\@,$(prefix),g' \
210             -e 's,@libdir\@,$(libdir),g' \
211             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
212
213 CLEANFILES += avahi-glib.pc
214
215 endif
216
217 if HAVE_GTK
218 if HAVE_DBUS
219
220 pkgconfig_DATA += avahi-ui.pc
221
222 avahi-ui.pc: avahi-ui.pc.in
223         sed -e 's,@prefix\@,$(prefix),g' \
224             -e 's,@libdir\@,$(libdir),g' \
225             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
226
227 CLEANFILES += avahi-ui.pc
228
229 endif
230 endif
231
232 if HAVE_QT3
233
234 pkgconfig_DATA += avahi-qt3.pc
235
236 avahi-qt3.pc: avahi-qt3.pc.in
237         sed -e 's,@prefix\@,$(prefix),g' \
238             -e 's,@libdir\@,$(libdir),g' \
239             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
240
241 CLEANFILES += avahi-qt3.pc
242
243 endif
244
245 if HAVE_QT4
246
247 pkgconfig_DATA += avahi-qt4.pc
248
249 avahi-qt4.pc: avahi-qt4.pc.in
250         sed -e 's,@prefix\@,$(prefix),g' \
251             -e 's,@libdir\@,$(libdir),g' \
252             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
253
254 CLEANFILES += avahi-qt4.pc
255
256 endif
257
258 MOSTLYCLEANFILES = $(DX_CLEANFILES)
259
260 DISTCHECK_CONFIGURE_FLAGS = \
261         --disable-monodoc
262
263 homepage:
264         $(MAKE) -C man
265         scp avahi-daemon/*.introspect avahi-daemon/introspect.dtd avahi-daemon/introspect.xsl\
266             man/*.xml man/xmltoman.dtd man/xmltoman.xsl \
267             tango:www/avahi.org/tree/download/
268         scp avahi-$(PACKAGE_VERSION).tar.gz tango:www/avahi.org/tree/download/
269         rm -rf doxygen
270         $(MAKE) doxygen-run
271         ssh tango rm -rf www/avahi.org/tree/download/doxygen
272         scp -r doxygen/html tango:www/avahi.org/tree/download/doxygen