]> git.meshlink.io Git - catta/blob - Makefile.am
fix pkg-config file generation for avahi-ui
[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         avahi-ui.pc.in
51
52 SUBDIRS = \
53         common \
54         avahi-common \
55         avahi-glib \
56         avahi-core \
57         avahi-discover-standalone \
58         avahi-qt \
59         avahi-client \
60         avahi-daemon \
61         avahi-sharp \
62         initscript \
63         avahi-dnsconfd \
64         avahi-utils \
65         avahi-python \
66         examples \
67         man \
68         tests \
69         service-type-database \
70         avahi-compat-libdns_sd \
71         avahi-compat-howl \
72         avahi-autoipd \
73         avahi-ui
74
75 DX_INPUT = \
76         $(srcdir)/avahi-common/address.h \
77         $(srcdir)/avahi-common/strlst.h \
78         $(srcdir)/avahi-common/alternative.h \
79         $(srcdir)/avahi-common/defs.h \
80         $(srcdir)/avahi-common/error.h \
81         $(srcdir)/avahi-common/malloc.h \
82         $(srcdir)/avahi-common/domain.h \
83         $(srcdir)/avahi-common/watch.h \
84         $(srcdir)/avahi-common/simple-watch.h \
85         $(srcdir)/avahi-common/thread-watch.h \
86         $(srcdir)/avahi-common/timeval.h
87
88 DX_EXAMPLE_PATH = $(srcdir)/examples
89 DX_EXAMPLE_PATTERNS = *.c
90
91 if HAVE_QT3
92 DX_INPUT += \
93         $(srcdir)/avahi-qt/qt-watch.h
94 else
95 if HAVE_QT4
96 DX_INPUT += \
97         $(srcdir)/avahi-qt/qt-watch.h
98 endif
99 endif
100
101 if HAVE_GLIB
102 DX_INPUT += \
103         $(srcdir)/avahi-glib/glib-watch.h \
104         $(srcdir)/avahi-glib/glib-malloc.h
105 endif
106
107 if HAVE_DBUS
108 DX_INPUT += \
109         $(srcdir)/avahi-client/client.h \
110         $(srcdir)/avahi-client/lookup.h \
111         $(srcdir)/avahi-client/publish.h
112 endif
113
114 if ENABLE_CORE_DOCS
115 DX_INPUT += \
116         $(srcdir)/avahi-core/core.h \
117         $(srcdir)/avahi-core/lookup.h \
118         $(srcdir)/avahi-core/publish.h \
119         $(srcdir)/avahi-core/rr.h \
120         $(srcdir)/avahi-core/log.h
121 endif
122
123 if HAVE_GTK
124 DX_INPUT += \
125         $(srcdir)/avahi-ui/avahi-ui.h
126 endif
127
128 pkgconfigdir = $(libdir)/pkgconfig
129 pkgconfig_DATA = avahi-core.pc
130
131 avahi-core.pc: avahi-core.pc.in
132         sed -e 's,@prefix\@,$(prefix),g' \
133             -e 's,@libdir\@,$(libdir),g' \
134             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
135
136 CLEANFILES = avahi-core.pc
137
138 if HAVE_DBUS
139
140 pkgconfig_DATA += avahi-client.pc
141
142 avahi-client.pc: avahi-client.pc.in
143         sed -e 's,@prefix\@,$(prefix),g' \
144             -e 's,@libdir\@,$(libdir),g' \
145             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
146
147 CLEANFILES += avahi-client.pc
148
149 if ENABLE_COMPAT_HOWL
150
151 pkgconfig_DATA += avahi-compat-howl.pc
152
153 avahi-compat-howl.pc: avahi-compat-howl.pc.in
154         sed -e 's,@prefix\@,$(prefix),g' \
155             -e 's,@libdir\@,$(libdir),g' \
156             -e 's,@HOWL_COMPAT_VERSION\@,$(HOWL_COMPAT_VERSION),g' $< > $@
157
158 CLEANFILES += avahi-compat-howl.pc
159
160 endif
161
162 if ENABLE_COMPAT_LIBDNS_SD
163
164 pkgconfig_DATA += avahi-compat-libdns_sd.pc
165
166 avahi-compat-libdns_sd.pc: avahi-compat-libdns_sd.pc.in
167         sed -e 's,@prefix\@,$(prefix),g' \
168             -e 's,@libdir\@,$(libdir),g' \
169             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
170
171 CLEANFILES += avahi-compat-libdns_sd.pc
172
173 endif
174
175 if HAVE_MONO
176
177 pkgconfig_DATA += avahi-sharp.pc
178
179 avahi-sharp.pc: avahi-sharp.pc.in
180         sed -e 's,@prefix\@,$(prefix),g' \
181             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
182             -e 's,@libdir\@,$(libdir),g' $< > $@
183
184 CLEANFILES += avahi-sharp.pc
185
186 endif
187
188 endif
189
190 if HAVE_GLIB
191
192 pkgconfig_DATA += avahi-glib.pc
193
194 avahi-glib.pc: avahi-glib.pc.in
195         sed -e 's,@prefix\@,$(prefix),g' \
196             -e 's,@libdir\@,$(libdir),g' \
197             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
198
199 CLEANFILES += avahi-glib.pc
200
201 endif
202
203 if HAVE_GTK
204 if HAVE_DBUS
205
206 pkgconfig_DATA += avahi-ui.pc
207
208 avahi-ui.pc: avahi-ui.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-ui.pc
214
215 endif
216 endif
217
218 if HAVE_QT3
219
220 pkgconfig_DATA += avahi-qt3.pc
221
222 avahi-qt3.pc: avahi-qt3.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-qt3.pc
228
229 endif
230
231 if HAVE_QT4
232
233 pkgconfig_DATA += avahi-qt4.pc
234
235 avahi-qt4.pc: avahi-qt4.pc.in
236         sed -e 's,@prefix\@,$(prefix),g' \
237             -e 's,@libdir\@,$(libdir),g' \
238             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
239
240 CLEANFILES += avahi-qt4.pc
241
242 endif
243
244 MOSTLYCLEANFILES = $(DX_CLEANFILES)
245
246 DISTCHECK_CONFIGURE_FLAGS = \
247         --disable-monodoc
248
249 homepage:
250         $(MAKE) -C man
251         scp avahi-daemon/*.introspect avahi-daemon/introspect.dtd avahi-daemon/introspect.xsl\
252             man/*.xml man/xmltoman.dtd man/xmltoman.xsl \
253             tango:www/avahi.org/tree/download/
254         scp avahi-$(PACKAGE_VERSION).tar.gz tango:www/avahi.org/tree/download/
255         rm -rf doxygen
256         $(MAKE) doxygen-run
257         ssh tango rm -rf www/avahi.org/tree/download/doxygen
258         scp -r doxygen/html tango:www/avahi.org/tree/download/doxygen