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 18pkgsysconfdir=$(sysconfdir)/avahi 19servicedir=$(pkgsysconfdir)/services 20 21if BUILD_MANPAGES 22 23man_MANS = \ 24 avahi-daemon.8 \ 25 avahi-dnsconfd.8 \ 26 avahi-daemon.conf.5 \ 27 avahi-dnsconfd.action.8 \ 28 avahi.service.5 \ 29 avahi.hosts.5 30 31noinst_DATA = \ 32 avahi-browse.1.xml \ 33 avahi-publish.1.xml \ 34 avahi-resolve.1.xml \ 35 avahi-set-host-name.1.xml \ 36 avahi-daemon.8.xml \ 37 avahi-discover.1.xml \ 38 avahi-bookmarks.1.xml \ 39 avahi-dnsconfd.8.xml \ 40 avahi-daemon.conf.5.xml \ 41 avahi-dnsconfd.action.8.xml \ 42 avahi.service.5.xml \ 43 avahi.hosts.5.xml \ 44 avahi-autoipd.8.xml \ 45 avahi-autoipd.action.8.xml \ 46 bssh.1.xml 47 48CLEANFILES = \ 49 $(noinst_DATA) 50 51if HAVE_DBUS 52 53man_MANS += \ 54 avahi-browse.1 \ 55 avahi-resolve.1 \ 56 avahi-publish.1 \ 57 avahi-set-host-name.1 58 59if HAVE_GTK 60man_MANS += \ 61 bssh.1 62endif 63 64if HAVE_PYTHON 65man_MANS += \ 66 avahi-bookmarks.1 67if HAVE_GTK 68man_MANS += \ 69 avahi-discover.1 70endif 71endif 72endif 73 74if ENABLE_AUTOIPD 75if HAVE_LIBDAEMON 76 77man_MANS += \ 78 avahi-autoipd.8 \ 79 avahi-autoipd.action.8 80 81endif 82endif 83 84%.xml: %.xml.in Makefile 85 $(AM_V_GEN) sed -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \ 86 -e 's,@servicedir\@,$(servicedir),g' \ 87 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \ 88 -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@ 89 90if USE_XMLTOMAN 91 92CLEANFILES += $(man_MANS) 93 94%.1: %.1.xml Makefile 95 $(AM_V_GEN)xmltoman $< > $@ 96 97%.5: %.5.xml Makefile 98 $(AM_V_GEN)xmltoman $< > $@ 99 100%.8: %.8.xml Makefile 101 $(AM_V_GEN)xmltoman $< > $@ 102 103xmllint: $(noinst_DATA) 104 for f in $(noinst_DATA) ; do \ 105 xmllint --noout --valid "$$f" || exit 1 ; \ 106 done 107 108endif 109 110endif 111 112EXTRA_DIST = \ 113 $(man_MANS) \ 114 avahi-browse.1.xml.in \ 115 avahi-publish.1.xml.in \ 116 avahi-resolve.1.xml.in \ 117 avahi-set-host-name.1.xml.in \ 118 avahi-daemon.8.xml.in \ 119 avahi-discover.1.xml.in \ 120 avahi-bookmarks.1.xml.in \ 121 avahi-dnsconfd.8.xml.in \ 122 avahi-daemon.conf.5.xml.in \ 123 avahi-dnsconfd.action.8.xml.in \ 124 avahi.service.5.xml.in \ 125 avahi.hosts.5.xml.in \ 126 avahi-autoipd.action.8.xml.in \ 127 avahi-autoipd.8.xml.in \ 128 bssh.1.xml.in \ 129 xmltoman.css \ 130 xmltoman.xsl \ 131 xmltoman.dtd 132 133 134if HAVE_DBUS 135 136BSSH_LN = 137if HAVE_GTK 138if HAVE_GLIB 139BSSH_LN += $(LN_S) bssh.1 bvnc.1 && 140endif 141endif 142install-exec-local: 143 mkdir -p $(DESTDIR)/$(mandir)/man1 && \ 144 cd $(DESTDIR)/$(mandir)/man1 && \ 145 rm -f avahi-resolve-host-name.1 avahi-resolve-address.1 avahi-browse-domains.1 avahi-publish-address.1 avahi-publish-service.1 bvnc.1 && \ 146 $(BSSH_LN) \ 147 $(LN_S) avahi-resolve.1 avahi-resolve-host-name.1 && \ 148 $(LN_S) avahi-resolve.1 avahi-resolve-address.1 && \ 149 $(LN_S) avahi-browse.1 avahi-browse-domains.1 && \ 150 $(LN_S) avahi-publish.1 avahi-publish-address.1 && \ 151 $(LN_S) avahi-publish.1 avahi-publish-service.1 152 153 154endif 155