]> git.meshlink.io Git - catta/blob - Makefile.am
integrate the service type database into the build system
[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         bootstrap.sh \
26         LICENSE \
27         $(DX_CONFIG) \
28         docs/INSTALL \
29         docs/TODO \
30         docs/README \
31         docs/DBUS-API \
32         docs/AUTHORS \
33         docs/HACKING \
34         docs/overview.dia \
35         docs/server-states.dia \
36         docs/avahi-poll.dia \
37         avahi-core.pc.in \
38         avahi-client.pc.in \
39         avahi-glib.pc.in
40
41 SUBDIRS = \
42         common \
43         avahi-common \
44         avahi-glib \
45         avahi-core \
46         avahi-discover-standalone \
47         avahi-client \
48         avahi-daemon \
49         initscript \
50         avahi-dnsconfd \
51         avahi-utils \
52         examples \
53         man \
54         tests \
55         service-type-database
56
57 DX_INPUT = \
58         $(srcdir)/avahi-common/cdecl.h \
59         $(srcdir)/avahi-core/core.h \
60         $(srcdir)/avahi-common/address.h \
61         $(srcdir)/avahi-core/rr.h \
62         $(srcdir)/avahi-common/strlst.h \
63         $(srcdir)/avahi-common/alternative.h \
64         $(srcdir)/avahi-core/log.h \
65         $(srcdir)/avahi-common/defs.h \
66         $(srcdir)/avahi-client/client.h \
67         $(srcdir)/avahi-common/error.h \
68         $(srcdir)/avahi-common/malloc.h \
69         $(srcdir)/avahi-common/domain.h \
70         $(srcdir)/avahi-common/gccmacro.h \
71         $(srcdir)/avahi-common/watch.h \
72         $(srcdir)/avahi-common/simple-watch.h \
73         $(srcdir)/avahi-glib/glib-watch.h \
74         $(srcdir)/avahi-glib/glib-malloc.h \
75         $(srcdir)/avahi-common/timeval.h \
76         $(srcdir)/avahi-common/dbus.h
77
78 DX_EXAMPLE_PATH = $(srcdir)/examples
79
80 DX_EXAMPLE_PATTERNS = *.c
81
82 pkgconfigdir = $(libdir)/pkgconfig
83 pkgconfig_DATA = avahi-core.pc
84
85 avahi-core.pc: avahi-core.pc.in
86         sed -e 's,@prefix\@,$(prefix),g' \
87             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
88
89 CLEANFILES = avahi-core.pc
90
91 if HAVE_DBUS
92
93 pkgconfig_DATA += avahi-client.pc
94
95 avahi-client.pc: avahi-client.pc.in
96         sed -e 's,@prefix\@,$(prefix),g' \
97             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
98
99 CLEANFILES += avahi-client.pc
100
101 endif
102
103 if HAVE_GLIB
104
105 pkgconfig_DATA += avahi-glib.pc
106
107 avahi-glib.pc: avahi-glib.pc.in
108         sed -e 's,@prefix\@,$(prefix),g' \
109             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
110
111 CLEANFILES += avahi-glib.pc
112
113 endif
114
115 MOSTLYCLEANFILES = $(DX_CLEANFILES)
116
117 homepage:
118         $(MAKE) -C man
119         scp avahi-daemon/*.introspect avahi-daemon/introspect.dtd avahi-daemon/introspect.xsl\
120             man/*.xml man/xmltoman.dtd man/xmltoman.xsl \
121             fdo:public_html/
122         rm -rf doxygen
123         $(MAKE) doxygen-run
124         ssh fdo rm -rf public_html/doxygen
125         scp -r doxygen/html fdo:public_html/doxygen