]> git.meshlink.io Git - catta/blob - Makefile.am
remove all but avahi-common and avahi-core and adjust build system accordingly
[catta] / Makefile.am
1 # This file is part of avahi.
2 #
3 # avahi is free software; you can redistribute it and/or modify it
4 # under the terms of the GNU Lesser General Public License as
5 # published by the Free Software Foundation; either version 2 of the
6 # License, or (at your option) any later version.
7 #
8 # avahi is distributed in the hope that it will be useful, but WITHOUT
9 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
10 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
11 # License for more details.
12 #
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with avahi; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
16 # USA.
17
18 ACLOCAL_AMFLAGS = -I common
19
20 include $(srcdir)/common/doxygen.mk
21
22 EXTRA_DIST = \
23         autogen.sh \
24         bootstrap.sh \
25         LICENSE \
26         $(DX_CONFIG) \
27         docs/INSTALL \
28         docs/TODO \
29         docs/NEWS \
30         docs/README \
31         docs/DBUS-API \
32         docs/AUTHORS \
33         docs/HACKING \
34         docs/API-CHANGES-0.6 \
35         docs/COMPAT-LAYERS \
36         docs/MALLOC \
37         docs/overview.dia \
38         docs/server-states.dia \
39         docs/avahi-poll.dia \
40         avahi-core.pc.in \
41         doxygen_to_devhelp.xsl \
42         common/introspection.m4
43
44 SUBDIRS = \
45         common \
46         avahi-common \
47         avahi-core \
48         examples \
49         po
50
51 DX_INPUT = \
52         $(srcdir)/avahi-common/address.h \
53         $(srcdir)/avahi-common/malloc.h \
54         $(srcdir)/avahi-common/strlst.h \
55         $(srcdir)/avahi-common/alternative.h \
56         $(srcdir)/avahi-common/defs.h \
57         $(srcdir)/avahi-common/error.h \
58         $(srcdir)/avahi-common/domain.h \
59         $(srcdir)/avahi-common/watch.h \
60         $(srcdir)/avahi-common/simple-watch.h \
61         $(srcdir)/avahi-common/thread-watch.h
62
63 DX_EXAMPLE_PATH = $(srcdir)/examples
64 DX_EXAMPLE_PATTERNS = *.c
65
66 if ENABLE_CORE_DOCS
67 DX_INPUT += \
68         $(srcdir)/avahi-core/core.h \
69         $(srcdir)/avahi-core/lookup.h \
70         $(srcdir)/avahi-core/publish.h \
71         $(srcdir)/avahi-core/rr.h \
72         $(srcdir)/avahi-core/log.h
73 endif
74
75 pkgconfigdir = $(libdir)/pkgconfig
76
77 %.pc: %.pc.in
78         $(AM_V_GEN)sed -e 's,@prefix\@,$(prefix),g' \
79             -e 's,@libdir\@,$(libdir),g' \
80             -e 's,@HOWL_COMPAT_VERSION\@,$(HOWL_COMPAT_VERSION),g' \
81             -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
82
83 pkgconfig_DATA = avahi-core.pc
84 CLEANFILES = avahi-core.pc
85 CLEANFILES += avahi.devhelp
86
87 avahi.devhelp: doxygen-run
88         xsltproc -o $@ doxygen_to_devhelp.xsl doxygen/xml/index.xml
89
90 MOSTLYCLEANFILES = $(DX_CLEANFILES)
91
92 DISTCHECK_CONFIGURE_FLAGS = \
93         --disable-monodoc \
94         --enable-introspection \
95         --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)
96
97 DISTCLEANFILES = \
98         po/.intltool-merge-cache