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