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 18ACLOCAL_AMFLAGS = -I common 19 20include $(srcdir)/common/doxygen.mk 21 22EXTRA_DIST = config.rpath \ 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 avahi-client.pc.in \ 42 avahi-glib.pc.in \ 43 avahi-libevent.pc.in \ 44 avahi-gobject.pc.in \ 45 avahi-qt3.pc.in \ 46 avahi-qt4.pc.in \ 47 avahi-qt5.pc.in \ 48 avahi-sharp.pc.in \ 49 avahi-ui-sharp.pc.in \ 50 avahi-compat-libdns_sd.pc.in \ 51 avahi-compat-howl.pc.in \ 52 avahi-ui.pc.in \ 53 avahi-ui-gtk3.pc.in \ 54 doxygen_to_devhelp.xsl \ 55 common/introspection.m4 56 57SUBDIRS = \ 58 common \ 59 avahi-common \ 60 avahi-core \ 61 avahi-qt \ 62 avahi-client \ 63 avahi-glib \ 64 avahi-gobject \ 65 avahi-discover-standalone \ 66 avahi-daemon \ 67 avahi-sharp \ 68 initscript \ 69 avahi-dnsconfd \ 70 avahi-utils \ 71 avahi-python \ 72 examples \ 73 man \ 74 tests \ 75 service-type-database \ 76 avahi-compat-libdns_sd \ 77 avahi-compat-howl \ 78 avahi-autoipd \ 79 avahi-ui \ 80 avahi-ui-sharp \ 81 avahi-libevent \ 82 po 83 84DX_INPUT = \ 85 $(srcdir)/avahi-common/address.h \ 86 $(srcdir)/avahi-common/malloc.h \ 87 $(srcdir)/avahi-common/strlst.h \ 88 $(srcdir)/avahi-common/alternative.h \ 89 $(srcdir)/avahi-common/defs.h \ 90 $(srcdir)/avahi-common/error.h \ 91 $(srcdir)/avahi-common/domain.h \ 92 $(srcdir)/avahi-common/watch.h \ 93 $(srcdir)/avahi-common/simple-watch.h \ 94 $(srcdir)/avahi-common/thread-watch.h 95 96DX_EXAMPLE_PATH = $(srcdir)/examples 97DX_EXAMPLE_PATTERNS = *.c 98 99if HAVE_QT3 100DX_INPUT += \ 101 $(srcdir)/avahi-qt/qt-watch.h 102else 103if HAVE_QT4 104DX_INPUT += \ 105 $(srcdir)/avahi-qt/qt-watch.h 106endif 107if HAVE_QT5 108DX_INPUT += \ 109 $(srcdir)/avahi-qt/qt-watch.h 110endif 111endif 112 113if HAVE_GLIB 114DX_INPUT += \ 115 $(srcdir)/avahi-glib/glib-watch.h \ 116 $(srcdir)/avahi-glib/glib-malloc.h 117 118if HAVE_GOBJECT 119if HAVE_DBUS 120DX_INPUT += \ 121 $(srcdir)/avahi-gobject/ga-client.h \ 122 $(srcdir)/avahi-gobject/ga-entry-group.h \ 123 $(srcdir)/avahi-gobject/ga-enums.h \ 124 $(srcdir)/avahi-gobject/ga-error.h \ 125 $(srcdir)/avahi-gobject/ga-record-browser.h \ 126 $(srcdir)/avahi-gobject/ga-service-browser.h \ 127 $(srcdir)/avahi-gobject/ga-service-resolver.h 128endif 129endif 130endif 131 132if HAVE_DBUS 133DX_INPUT += \ 134 $(srcdir)/avahi-client/client.h \ 135 $(srcdir)/avahi-client/lookup.h \ 136 $(srcdir)/avahi-client/publish.h 137endif 138 139if HAVE_DBUS 140if HAVE_GTK 141DX_INPUT += \ 142 $(srcdir)/avahi-ui/avahi-ui.h 143endif 144endif 145 146if ENABLE_CORE_DOCS 147DX_INPUT += \ 148 $(srcdir)/avahi-core/core.h \ 149 $(srcdir)/avahi-core/lookup.h \ 150 $(srcdir)/avahi-core/publish.h \ 151 $(srcdir)/avahi-core/rr.h \ 152 $(srcdir)/avahi-core/log.h 153endif 154 155if HAVE_GTK 156DX_INPUT += \ 157 $(srcdir)/avahi-ui/avahi-ui.h 158endif 159 160if HAVE_LIBEVENT 161DX_INPUT += \ 162 $(srcdir)/avahi-libevent/libevent-watch.h 163endif 164 165pkgconfigdir = $(libdir)/pkgconfig 166 167%.pc: %.pc.in 168 $(AM_V_GEN)sed -e 's,@prefix\@,$(prefix),g' \ 169 -e 's,@libdir\@,$(libdir),g' \ 170 -e 's,@HOWL_COMPAT_VERSION\@,$(HOWL_COMPAT_VERSION),g' \ 171 -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@ 172 173pkgconfig_DATA = avahi-core.pc 174CLEANFILES = avahi-core.pc 175 176if HAVE_DBUS 177pkgconfig_DATA += avahi-client.pc 178CLEANFILES += avahi-client.pc 179 180if ENABLE_COMPAT_HOWL 181pkgconfig_DATA += avahi-compat-howl.pc 182CLEANFILES += avahi-compat-howl.pc 183endif 184 185if ENABLE_COMPAT_LIBDNS_SD 186pkgconfig_DATA += avahi-compat-libdns_sd.pc 187CLEANFILES += avahi-compat-libdns_sd.pc 188endif 189 190if HAVE_MONO 191pkgconfig_DATA += avahi-sharp.pc avahi-ui-sharp.pc 192CLEANFILES += avahi-sharp.pc avahi-ui-sharp.pc 193endif 194 195endif 196 197if HAVE_GLIB 198pkgconfig_DATA += avahi-glib.pc 199CLEANFILES += avahi-glib.pc 200 201if HAVE_GOBJECT 202pkgconfig_DATA += avahi-gobject.pc 203CLEANFILES += avahi-gobject.pc 204endif 205endif 206 207if HAVE_GTK 208if HAVE_DBUS 209pkgconfig_DATA += avahi-ui.pc 210CLEANFILES += avahi-ui.pc 211endif 212endif 213 214if HAVE_GTK3 215if HAVE_DBUS 216pkgconfig_DATA += avahi-ui-gtk3.pc 217CLEANFILES += avahi-ui-gtk3.pc 218endif 219endif 220 221if HAVE_QT3 222pkgconfig_DATA += avahi-qt3.pc 223CLEANFILES += avahi-qt3.pc 224endif 225 226if HAVE_QT4 227pkgconfig_DATA += avahi-qt4.pc 228CLEANFILES += avahi-qt4.pc 229endif 230 231if HAVE_QT5 232pkgconfig_DATA += avahi-qt5.pc 233CLEANFILES += avahi-qt5.pc 234endif 235 236if HAVE_LIBEVENT 237pkgconfig_DATA += avahi-libevent.pc 238CLEANFILES += avahi-libevent.pc 239endif 240 241CLEANFILES += avahi.devhelp 242 243avahi.devhelp: doxygen-run 244 xsltproc -o $@ doxygen_to_devhelp.xsl doxygen/xml/index.xml 245 246MOSTLYCLEANFILES = $(DX_CLEANFILES) 247 248DISTCHECK_CONFIGURE_FLAGS = \ 249 --disable-monodoc \ 250 --enable-introspection \ 251 --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir) 252 253homepage: 254 $(MAKE) -C man 255 scp avahi-daemon/*.xml avahi-daemon/introspect.dtd avahi-daemon/introspect.xsl\ 256 man/*.xml man/xmltoman.dtd man/xmltoman.xsl \ 257 tango:www/avahi.org/tree/download/ 258 scp avahi-$(PACKAGE_VERSION).tar.gz tango:www/avahi.org/tree/download/ 259 rm -rf doxygen 260 $(MAKE) doxygen-run 261 ssh tango rm -rf www/avahi.org/tree/download/doxygen 262 scp -r doxygen/html tango:www/avahi.org/tree/download/doxygen 263