]> git.meshlink.io Git - catta/blob - Makefile.am
* Disable shipping of Gentoo and SUSE init scripts for now since they are horribly...
[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
56 DX_INPUT = \
57         $(srcdir)/avahi-common/cdecl.h \
58         $(srcdir)/avahi-core/core.h \
59         $(srcdir)/avahi-common/address.h \
60         $(srcdir)/avahi-core/rr.h \
61         $(srcdir)/avahi-common/strlst.h \
62         $(srcdir)/avahi-common/alternative.h \
63         $(srcdir)/avahi-core/log.h \
64         $(srcdir)/avahi-common/defs.h \
65         $(srcdir)/avahi-client/client.h \
66         $(srcdir)/avahi-common/error.h \
67         $(srcdir)/avahi-common/malloc.h \
68         $(srcdir)/avahi-common/domain.h \
69         $(srcdir)/avahi-common/gccmacro.h \
70         $(srcdir)/avahi-common/watch.h \
71         $(srcdir)/avahi-common/simple-watch.h \
72         $(srcdir)/avahi-glib/glib-watch.h \
73         $(srcdir)/avahi-glib/glib-malloc.h \
74         $(srcdir)/avahi-common/timeval.h \
75         $(srcdir)/avahi-common/dbus.h
76
77 DX_EXAMPLE_PATH = $(srcdir)/examples
78
79 DX_EXAMPLE_PATTERNS = *.c
80
81 pkgconfigdir = $(libdir)/pkgconfig
82 pkgconfig_DATA = avahi-core.pc
83
84 avahi-core.pc: avahi-core.pc.in
85         sed -e 's,@prefix\@,$(prefix),g' \
86             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
87
88 CLEANFILES = avahi-core.pc
89
90 if HAVE_DBUS
91
92 pkgconfig_DATA += avahi-client.pc
93
94 avahi-client.pc: avahi-client.pc.in
95         sed -e 's,@prefix\@,$(prefix),g' \
96             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
97
98 CLEANFILES += avahi-client.pc
99
100 endif
101
102 if HAVE_GLIB
103
104 pkgconfig_DATA += avahi-glib.pc
105
106 avahi-glib.pc: avahi-glib.pc.in
107         sed -e 's,@prefix\@,$(prefix),g' \
108             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
109
110 CLEANFILES += avahi-glib.pc
111
112 endif
113
114 MOSTLYCLEANFILES = $(DX_CLEANFILES)
115
116 homepage:
117         $(MAKE) -C man
118         scp avahi-daemon/*.introspect avahi-daemon/introspect.dtd avahi-daemon/introspect.xsl\
119             man/*.xml man/xmltoman.dtd man/xmltoman.xsl \
120             fdo:public_html/
121         rm -rf doxygen
122         $(MAKE) doxygen-run
123         ssh fdo rm -rf public_html/doxygen
124         scp -r doxygen/html fdo:public_html/doxygen