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