]> git.meshlink.io Git - catta/blob - man/Makefile.am
add man pages for avahi-disover and avahi-bookmarks
[catta] / man / 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 pkgsysconfdir=$(sysconfdir)/avahi
21 servicedir=$(pkgsysconfdir)/services
22
23 man_MANS = \
24         avahi-daemon.8
25
26 if HAVE_PYTHON
27
28 man_MANS += \
29         avahi-browse.1 \
30         avahi-publish-service.1 \
31         avahi-publish-address.1 \
32         avahi-resolve-address.1 \
33         avahi-resolve-host-name.1 \
34         avahi-discover.1 \
35         avahi-bookmarks.1
36
37 endif
38
39 noinst_DATA = \
40         avahi-browse.1.xml \
41         avahi-publish-service.1.xml \
42         avahi-publish-address.1.xml \
43         avahi-resolve-address.1.xml \
44         avahi-resolve-host-name.1.xml \
45         avahi-daemon.8.xml \
46         avahi-discover.1.xml \
47         avahi-bookmarks.1.xml
48
49 EXTRA_DIST = \
50         $(man_MANS) \
51         avahi-browse.1.xml.in \
52         avahi-publish-service.1.xml.in \
53         avahi-publish-address.1.xml.in \
54         avahi-resolve-address.1.xml.in \
55         avahi-resolve-host-name.1.xml.in \
56         avahi-daemon.8.xml.in \
57         avahi-discover.1.xml.in \
58         avahi-bookmarks.1.xml.in \
59         xmltoman.css \
60         xmltoman.xsl \
61         xmltoman.dtd
62
63 CLEANFILES = \
64         $(noinst_DATA)
65
66 avahi-browse.1.xml: avahi-browse.1.xml.in Makefile
67         sed -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
68         -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
69
70 avahi-publish-service.1.xml: avahi-publish-service.1.xml.in Makefile
71         sed     -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
72         -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
73
74 avahi-publish-address.1.xml: avahi-publish-address.1.xml.in Makefile
75         sed     -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
76         -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
77
78 avahi-resolve-address.1.xml: avahi-resolve-address.1.xml.in Makefile
79         sed     -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
80         -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
81
82 avahi-resolve-host-name.1.xml: avahi-resolve-host-name.1.xml.in Makefile
83         sed     -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
84         -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
85
86 avahi-daemon.8.xml: avahi-daemon.8.xml.in Makefile
87         sed -e 's,@pkgsysconfdir\@,$(pkgsysconfdir),g' \
88                 -e 's,@servicedir\@,$(servicedir),g' \
89                 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
90         -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
91
92 avahi-discover.1.xml: avahi-discover.1.xml.in Makefile
93         sed     -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
94         -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
95
96 avahi-bookmarks.1.xml: avahi-bookmarks.1.xml.in Makefile
97         sed     -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
98         -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
99
100 if USE_XMLTOMAN
101
102 CLEANFILES += $(man_MANS)
103
104 avahi-browse.1: avahi-browse.1.xml Makefile
105         xmltoman $< > $@
106
107 avahi-publish-service.1: avahi-publish-service.1.xml Makefile
108         xmltoman $< > $@
109
110 avahi-publish-address.1: avahi-publish-address.1.xml Makefile
111         xmltoman $< > $@
112
113 avahi-resolve-address.1: avahi-resolve-address.1.xml Makefile
114         xmltoman $< > $@
115
116 avahi-resolve-host-name.1: avahi-resolve-host-name.1.xml Makefile
117         xmltoman $< > $@
118
119 avahi-daemon.8: avahi-daemon.8.xml Makefile
120         xmltoman $< > $@
121
122 avahi-discover.1: avahi-discover.1.xml Makefile
123         xmltoman $< > $@
124
125 avahi-bookmarks.1: avahi-bookmarks.1.xml Makefile
126         xmltoman $< > $@
127
128 endif