]> git.meshlink.io Git - catta/blob - Makefile.am
* split client.h into client.h, lookup.h and publish.h just like we did on the server...
[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         examples \
62         man \
63         tests \
64         service-type-database \
65         avahi-compat-libdns_sd \
66         avahi-compat-howl
67
68
69 DX_INPUT = \
70         $(srcdir)/avahi-common/cdecl.h \
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/gccmacro.h \
87         $(srcdir)/avahi-common/watch.h \
88         $(srcdir)/avahi-common/llist.h \
89         $(srcdir)/avahi-common/rlist.h \
90         $(srcdir)/avahi-common/simple-watch.h \
91         $(srcdir)/avahi-glib/glib-watch.h \
92         $(srcdir)/avahi-glib/glib-malloc.h \
93         $(srcdir)/avahi-common/timeval.h \
94         $(srcdir)/avahi-common/dbus.h \
95         $(srcdir)/avahi-qt/qt-watch.h
96
97 DX_EXAMPLE_PATH = $(srcdir)/examples
98
99 DX_EXAMPLE_PATTERNS = *.c
100
101 pkgconfigdir = $(libdir)/pkgconfig
102 pkgconfig_DATA = avahi-core.pc
103
104 avahi-core.pc: avahi-core.pc.in
105         sed -e 's,@prefix\@,$(prefix),g' \
106             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
107
108 CLEANFILES = avahi-core.pc
109
110 if HAVE_DBUS
111
112 pkgconfig_DATA += avahi-client.pc avahi-compat-libdns_sd.pc  avahi-compat-howl.pc
113
114 avahi-client.pc: avahi-client.pc.in
115         sed -e 's,@prefix\@,$(prefix),g' \
116             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
117
118 avahi-compat-libdns_sd.pc: avahi-compat-libdns_sd.pc.in
119         sed -e 's,@prefix\@,$(prefix),g' \
120             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
121
122 avahi-compat-howl.pc: avahi-compat-howl.pc.in
123         sed -e 's,@prefix\@,$(prefix),g' \
124             -e 's,@HOWL_COMPAT_VERSION\@,$(HOWL_COMPAT_VERSION),g' $< > $@
125
126 CLEANFILES += avahi-client.pc avahi-compat-libdns_sd.pc avahi-compat-howl.pc
127
128 endif
129
130 if HAVE_GLIB
131
132 pkgconfig_DATA += avahi-glib.pc
133
134 avahi-glib.pc: avahi-glib.pc.in
135         sed -e 's,@prefix\@,$(prefix),g' \
136             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
137
138 CLEANFILES += avahi-glib.pc
139
140 endif
141
142 if HAVE_QT3
143
144 pkgconfig_DATA += avahi-qt3.pc
145
146 avahi-qt3.pc: avahi-qt3.pc.in
147         sed -e 's,@prefix\@,$(prefix),g' \
148             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
149
150 CLEANFILES += avahi-qt3.pc
151
152 endif
153
154 if HAVE_QT4
155
156 pkgconfig_DATA += avahi-qt4.pc
157
158 avahi-qt4.pc: avahi-qt4.pc.in
159         sed -e 's,@prefix\@,$(prefix),g' \
160             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
161
162 CLEANFILES += avahi-qt4.pc
163
164 endif
165
166 if HAVE_MONO
167
168 pkgconfig_DATA += avahi-sharp.pc
169
170 avahi-sharp.pc: avahi-sharp.pc.in
171         sed -e 's,@prefix\@,$(prefix),g' \
172             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
173             -e 's,@libdir\@,$(libdir),g' $< > $@
174
175 CLEANFILES += avahi-sharp.pc
176
177 endif
178
179 MOSTLYCLEANFILES = $(DX_CLEANFILES)
180
181 DISTCHECK_CONFIGURE_FLAGS = \
182         --disable-monodoc
183
184 homepage:
185         $(MAKE) -C man
186         scp avahi-daemon/*.introspect avahi-daemon/introspect.dtd avahi-daemon/introspect.xsl\
187             man/*.xml man/xmltoman.dtd man/xmltoman.xsl \
188             fdo:public_html/
189         rm -rf doxygen
190         $(MAKE) doxygen-run
191         ssh fdo rm -rf public_html/doxygen
192         scp -r doxygen/html fdo:public_html/doxygen