]> git.meshlink.io Git - catta/blob - Makefile.am
* Include some new files from docs/ into the tarballs (incl API-CHANGES-0.6)
[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
51 SUBDIRS = \
52         common \
53         avahi-common \
54         avahi-glib \
55         avahi-core \
56         avahi-discover-standalone \
57         avahi-qt \
58         avahi-client \
59         avahi-daemon \
60         avahi-sharp \
61         initscript \
62         avahi-dnsconfd \
63         avahi-utils \
64         avahi-python \
65         examples \
66         man \
67         tests \
68         service-type-database \
69         avahi-compat-libdns_sd \
70         avahi-compat-howl 
71
72
73 DX_INPUT = \
74         $(srcdir)/avahi-core/core.h \
75         $(srcdir)/avahi-core/lookup.h \
76         $(srcdir)/avahi-core/publish.h \
77         $(srcdir)/avahi-common/address.h \
78         $(srcdir)/avahi-core/rr.h \
79         $(srcdir)/avahi-common/strlst.h \
80         $(srcdir)/avahi-common/alternative.h \
81         $(srcdir)/avahi-core/log.h \
82         $(srcdir)/avahi-common/defs.h \
83         $(srcdir)/avahi-client/client.h \
84         $(srcdir)/avahi-client/lookup.h \
85         $(srcdir)/avahi-client/publish.h \
86         $(srcdir)/avahi-common/error.h \
87         $(srcdir)/avahi-common/malloc.h \
88         $(srcdir)/avahi-common/domain.h \
89         $(srcdir)/avahi-common/watch.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-qt/qt-watch.h
95
96 DX_EXAMPLE_PATH = $(srcdir)/examples
97
98 DX_EXAMPLE_PATTERNS = *.c
99
100 pkgconfigdir = $(libdir)/pkgconfig
101 pkgconfig_DATA = avahi-core.pc
102
103 avahi-core.pc: avahi-core.pc.in
104         sed -e 's,@prefix\@,$(prefix),g' \
105             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
106
107 CLEANFILES = avahi-core.pc
108
109 if HAVE_DBUS
110
111 pkgconfig_DATA += avahi-client.pc
112
113 avahi-client.pc: avahi-client.pc.in
114         sed -e 's,@prefix\@,$(prefix),g' \
115             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
116
117 CLEANFILES += avahi-client.pc
118
119 if ENABLE_COMPAT_HOWL
120
121 pkgconfig_DATA += avahi-compat-howl.pc
122
123 avahi-compat-howl.pc: avahi-compat-howl.pc.in
124         sed -e 's,@prefix\@,$(prefix),g' \
125             -e 's,@HOWL_COMPAT_VERSION\@,$(HOWL_COMPAT_VERSION),g' $< > $@
126
127 CLEANFILES += avahi-compat-howl.pc
128
129 endif
130
131 if ENABLE_COMPAT_LIBDNS_SD
132
133 pkgconfig_DATA += avahi-compat-libdns_sd.pc
134
135 avahi-compat-libdns_sd.pc: avahi-compat-libdns_sd.pc.in
136         sed -e 's,@prefix\@,$(prefix),g' \
137             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
138
139 CLEANFILES += avahi-compat-libdns_sd.pc
140
141 endif
142
143 if HAVE_MONO
144
145 pkgconfig_DATA += avahi-sharp.pc
146
147 avahi-sharp.pc: avahi-sharp.pc.in
148         sed -e 's,@prefix\@,$(prefix),g' \
149             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
150             -e 's,@libdir\@,$(libdir),g' $< > $@
151
152 CLEANFILES += avahi-sharp.pc
153
154 endif
155
156 endif
157
158 if HAVE_GLIB
159
160 pkgconfig_DATA += avahi-glib.pc
161
162 avahi-glib.pc: avahi-glib.pc.in
163         sed -e 's,@prefix\@,$(prefix),g' \
164             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
165
166 CLEANFILES += avahi-glib.pc
167
168 endif
169
170 if HAVE_QT3
171
172 pkgconfig_DATA += avahi-qt3.pc
173
174 avahi-qt3.pc: avahi-qt3.pc.in
175         sed -e 's,@prefix\@,$(prefix),g' \
176             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
177
178 CLEANFILES += avahi-qt3.pc
179
180 endif
181
182 if HAVE_QT4
183
184 pkgconfig_DATA += avahi-qt4.pc
185
186 avahi-qt4.pc: avahi-qt4.pc.in
187         sed -e 's,@prefix\@,$(prefix),g' \
188             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
189
190 CLEANFILES += avahi-qt4.pc
191
192 endif
193
194 MOSTLYCLEANFILES = $(DX_CLEANFILES)
195
196 DISTCHECK_CONFIGURE_FLAGS = \
197         --disable-monodoc
198
199 homepage:
200         $(MAKE) -C man
201         scp avahi-daemon/*.introspect avahi-daemon/introspect.dtd avahi-daemon/introspect.xsl\
202             man/*.xml man/xmltoman.dtd man/xmltoman.xsl \
203             fdo:public_html/
204         rm -rf doxygen
205         $(MAKE) doxygen-run
206         ssh fdo rm -rf public_html/doxygen
207         scp -r doxygen/html fdo:public_html/doxygen