]> git.meshlink.io Git - catta/blob - man/Makefile.am
some autoconf fixes
[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 if HAVE_PYTHON
21
22 man_MANS = \
23         avahi-browse.1 \
24         avahi-publish-service.1 \
25         avahi-publish-address.1 \
26         avahi-resolve-address.1 \
27         avahi-resolve-host-name.1
28
29 endif
30
31 noinst_DATA = \
32         avahi-browse.1.xml \
33         avahi-publish-service.1.xml \
34         avahi-publish-address.1.xml \
35         avahi-resolve-address.1.xml \
36         avahi-resolve-host-name.1.xml
37
38 EXTRA_DIST = \
39         $(man_MANS) \
40         avahi-browse.1.xml.in \
41         avahi-publish-service.1.xml.in \
42         avahi-publish-address.1.xml.in \
43         avahi-resolve-address.1.xml.in \
44         avahi-resolve-host-name.1.xml.in \
45         xmltoman.css \
46         xmltoman.xsl \
47         xmltoman.dtd
48
49 CLEANFILES = \
50         $(noinst_DATA)
51
52 avahi-browse.1.xml: avahi-browse.1.xml.in Makefile
53         sed -e 's,@sysconfdir\@,$(sysconfdir),g' \
54             -e 's,@sbindir\@,$(sbindir),g' \
55                 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
56         -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
57
58 avahi-publish-service.1.xml: avahi-publish-service.1.xml.in Makefile
59         sed -e 's,@sysconfdir\@,$(sysconfdir),g' \
60             -e 's,@sbindir\@,$(sbindir),g' \
61                 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
62         -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
63
64 avahi-publish-address.1.xml: avahi-publish-address.1.xml.in Makefile
65         sed -e 's,@sysconfdir\@,$(sysconfdir),g' \
66             -e 's,@sbindir\@,$(sbindir),g' \
67                 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
68         -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
69
70 avahi-resolve-address.1.xml: avahi-resolve-address.1.xml.in Makefile
71         sed -e 's,@sysconfdir\@,$(sysconfdir),g' \
72             -e 's,@sbindir\@,$(sbindir),g' \
73                 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
74         -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
75
76 avahi-resolve-host-name.1.xml: avahi-resolve-host-name.1.xml.in Makefile
77         sed -e 's,@sysconfdir\@,$(sysconfdir),g' \
78             -e 's,@sbindir\@,$(sbindir),g' \
79                 -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' \
80         -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@
81
82 if USE_XMLTOMAN
83
84 CLEANFILES += $(man_MANS)
85
86 avahi-browse.1: avahi-browse.1.xml Makefile
87         xmltoman $< > $@
88
89 avahi-publish-service.1: avahi-publish-service.1.xml Makefile
90         xmltoman $< > $@
91
92 avahi-publish-address.1: avahi-publish-address.1.xml Makefile
93         xmltoman $< > $@
94
95 avahi-resolve-address.1: avahi-resolve-address.1.xml Makefile
96         xmltoman $< > $@
97
98 avahi-resolve-host-name.1: avahi-resolve-host-name.1.xml Makefile
99         xmltoman $< > $@
100
101 endif