]> git.meshlink.io Git - catta/blob - Makefile.am
* Actually include the DISTCHECk flag
[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
46 SUBDIRS = \
47         common \
48         avahi-common \
49         avahi-glib \
50         avahi-core \
51         avahi-discover-standalone \
52         avahi-qt \
53         avahi-client \
54         avahi-daemon \
55         avahi-sharp \
56         initscript \
57         avahi-dnsconfd \
58         avahi-utils \
59         examples \
60         man \
61         tests \
62         service-type-database
63
64
65 DX_INPUT = \
66         $(srcdir)/avahi-common/cdecl.h \
67         $(srcdir)/avahi-core/core.h \
68         $(srcdir)/avahi-common/address.h \
69         $(srcdir)/avahi-core/rr.h \
70         $(srcdir)/avahi-common/strlst.h \
71         $(srcdir)/avahi-common/alternative.h \
72         $(srcdir)/avahi-core/log.h \
73         $(srcdir)/avahi-common/defs.h \
74         $(srcdir)/avahi-client/client.h \
75         $(srcdir)/avahi-common/error.h \
76         $(srcdir)/avahi-common/malloc.h \
77         $(srcdir)/avahi-common/domain.h \
78         $(srcdir)/avahi-common/gccmacro.h \
79         $(srcdir)/avahi-common/watch.h \
80         $(srcdir)/avahi-common/simple-watch.h \
81         $(srcdir)/avahi-glib/glib-watch.h \
82         $(srcdir)/avahi-glib/glib-malloc.h \
83         $(srcdir)/avahi-common/timeval.h \
84         $(srcdir)/avahi-common/dbus.h \
85         $(srcdir)/avahi-qt/qt-watch.h
86
87 DX_EXAMPLE_PATH = $(srcdir)/examples
88
89 DX_EXAMPLE_PATTERNS = *.c
90
91 pkgconfigdir = $(libdir)/pkgconfig
92 pkgconfig_DATA = avahi-core.pc
93
94 avahi-core.pc: avahi-core.pc.in
95         sed -e 's,@prefix\@,$(prefix),g' \
96             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
97
98 CLEANFILES = avahi-core.pc
99
100 if HAVE_DBUS
101
102 pkgconfig_DATA += avahi-client.pc
103
104 avahi-client.pc: avahi-client.pc.in
105         sed -e 's,@prefix\@,$(prefix),g' \
106             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
107
108 CLEANFILES += avahi-client.pc
109
110 endif
111
112 if HAVE_GLIB
113
114 pkgconfig_DATA += avahi-glib.pc
115
116 avahi-glib.pc: avahi-glib.pc.in
117         sed -e 's,@prefix\@,$(prefix),g' \
118             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
119
120 CLEANFILES += avahi-glib.pc
121
122 endif
123
124 if HAVE_QT3
125
126 pkgconfig_DATA += avahi-qt3.pc
127
128 avahi-qt3.pc: avahi-qt3.pc.in
129         sed -e 's,@prefix\@,$(prefix),g' \
130             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
131
132 CLEANFILES += avahi-qt3.pc
133
134 endif
135
136 if HAVE_QT4
137
138 pkgconfig_DATA += avahi-qt4.pc
139
140 avahi-qt4.pc: avahi-qt4.pc.in
141         sed -e 's,@prefix\@,$(prefix),g' \
142             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
143
144 CLEANFILES += avahi-qt4.pc
145
146 endif
147
148 if HAVE_MONO
149
150 pkgconfig_DATA += avahi-sharp.pc
151
152 avahi-sharp.pc: avahi-sharp.pc.in
153         sed -e 's,@prefix\@,$(prefix),g' \
154             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
155             -e 's,@libdir\@,$(libdir),g' $< > $@
156
157 CLEANFILES += avahi-sharp.pc
158
159 endif
160
161 MOSTLYCLEANFILES = $(DX_CLEANFILES)
162
163 DISTCHECK_CONFIGURE_FLAGS = \
164         --disable-mono-docs
165
166 homepage:
167         $(MAKE) -C man
168         scp avahi-daemon/*.introspect avahi-daemon/introspect.dtd avahi-daemon/introspect.xsl\
169             man/*.xml man/xmltoman.dtd man/xmltoman.xsl \
170             fdo:public_html/
171         rm -rf doxygen
172         $(MAKE) doxygen-run
173         ssh fdo rm -rf public_html/doxygen
174         scp -r doxygen/html fdo:public_html/doxygen