Home | History | Annotate | Download | only in man
      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 pkgsysconfdir=$(sysconfdir)/avahi
     19 servicedir=$(pkgsysconfdir)/services
     20 
     21 if BUILD_MANPAGES
     22 
     23 man_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 
     31 noinst_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 
     48 CLEANFILES = \
     49 	$(noinst_DATA)
     50 
     51 if HAVE_DBUS
     52 
     53 man_MANS += \
     54 	avahi-browse.1 \
     55 	avahi-resolve.1 \
     56 	avahi-publish.1 \
     57 	avahi-set-host-name.1
     58 
     59 if HAVE_GTK
     60 man_MANS += \
     61 	bssh.1
     62 endif
     63 
     64 if HAVE_PYTHON
     65 man_MANS += \
     66 	avahi-bookmarks.1
     67 if HAVE_GTK
     68 man_MANS += \
     69 	avahi-discover.1
     70 endif
     71 endif
     72 endif
     73 
     74 if ENABLE_AUTOIPD
     75 if HAVE_LIBDAEMON
     76 
     77 man_MANS += \
     78 	avahi-autoipd.8 \
     79 	avahi-autoipd.action.8
     80 
     81 endif
     82 endif
     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 
     90 if USE_XMLTOMAN
     91 
     92 CLEANFILES += $(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 
    103 xmllint: $(noinst_DATA)
    104 	for f in $(noinst_DATA) ; do \
    105 			xmllint --noout --valid "$$f" || exit 1 ; \
    106 	done
    107 
    108 endif
    109 
    110 endif
    111 
    112 EXTRA_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 
    134 if HAVE_DBUS
    135 
    136 BSSH_LN =
    137 if HAVE_GTK
    138 if HAVE_GLIB
    139 BSSH_LN += $(LN_S) bssh.1 bvnc.1 &&
    140 endif
    141 endif
    142 install-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 
    154 endif
    155