import torrus 1.0.9
[freeside.git] / torrus / doc / manpages / Makefile.am
1
2 #  Copyright (C) 2002  Stanislav Sinyagin
3 #
4 #  This program is free software; you can redistribute it and/or modify
5 #  it under the terms of the GNU General Public License as published by
6 #  the Free Software Foundation; either version 2 of the License, or
7 #  (at your option) any later version.
8 #
9 #  This program is distributed in the hope that it will be useful,
10 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
11 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 #  GNU General Public License for more details.
13 #
14 #  You should have received a copy of the GNU General Public License
15 #  along with this program; if not, write to the Free Software
16 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
17
18 # $Id: Makefile.am,v 1.1 2010-12-27 00:04:38 ivan Exp $
19 # Stanislav Sinyagin <ssinyagin@yahoo.com>
20 #
21
22 SUBST = @abs_top_builddir@/setup_tools/substvars.sh
23
24 EXTRA_DIST = $(SRCPOD)
25 CLEANFILES = $(PODMAN) $(POD_FILES)
26
27 SRCPOD = \
28         torrus.pod.in \
29         torrus_acledit.pod.in \
30         torrus_action_notify.pod.in \
31         torrus_action_printemail.pod.in \
32         torrus_action_snmptrap.pod.in \
33         torrus_buildsearchdb.pod.in \
34         torrus_cleanup.pod.in \
35         torrus_clearcache.pod.in \
36         torrus_collector.pod.in \
37         torrus_compilexml.pod.in \
38         torrus_configinfo.pod.in \
39         torrus_configsnapshot.pod.in \
40         torrus_devdiscover.pod.in \
41         torrus_flushmonitors.pod.in \
42         torrus_genddx.pod.in \
43         torrus_genlist.pod.in \
44         torrus_genreport.pod.in \
45         torrus_install_plugin.pod.in \
46         torrus_monitor.pod.in \
47         torrus_nodeid.pod.in \
48         torrus_rrddir2xml.pod.in \
49         torrus_schedulerinfo.pod.in \
50         torrus_snmpfailures.pod.in \
51         torrus_srvderive.pod.in \
52         torrus_ttproclist.pod.in
53
54 POD_FILES = \
55         torrus.pod \
56         torrus_acledit.pod \
57         torrus_action_notify.pod \
58         torrus_action_printemail.pod \
59         torrus_action_snmptrap.pod \
60         torrus_buildsearchdb.pod \
61         torrus_cleanup.pod \
62         torrus_clearcache.pod \
63         torrus_collector.pod \
64         torrus_compilexml.pod \
65         torrus_configinfo.pod \
66         torrus_configsnapshot.pod \
67         torrus_devdiscover.pod \
68         torrus_flushmonitors.pod \
69         torrus_genddx.pod \
70         torrus_genlist.pod \
71         torrus_genreport.pod \
72         torrus_install_plugin.pod \
73         torrus_monitor.pod \
74         torrus_nodeid.pod \
75         torrus_rrddir2xml.pod \
76         torrus_schedulerinfo.pod \
77         torrus_snmpfailures.pod \
78         torrus_srvderive.pod \
79         torrus_ttproclist.pod
80
81 PODMAN = \
82         torrus.@mansec_usercmd@ \
83         torrus_acledit.@mansec_usercmd@ \
84         torrus_action_notify.@mansec_misc@ \
85         torrus_action_printemail.@mansec_misc@ \
86         torrus_action_snmptrap.@mansec_misc@ \
87         torrus_buildsearchdb.@mansec_usercmd@ \
88         torrus_cleanup.@mansec_usercmd@ \
89         torrus_clearcache.@mansec_usercmd@ \
90         torrus_collector.@mansec_usercmd@ \
91         torrus_compilexml.@mansec_usercmd@ \
92         torrus_configinfo.@mansec_usercmd@ \
93         torrus_configsnapshot.@mansec_usercmd@ \
94         torrus_devdiscover.@mansec_usercmd@ \
95         torrus_flushmonitors.@mansec_usercmd@ \
96         torrus_genddx.@mansec_usercmd@ \
97         torrus_genlist.@mansec_usercmd@ \
98         torrus_genreport.@mansec_usercmd@ \
99         torrus_install_plugin.@mansec_misc@ \
100         torrus_monitor.@mansec_usercmd@ \
101         torrus_nodeid.@mansec_usercmd@ \
102         torrus_rrddir2xml.@mansec_usercmd@ \
103         torrus_schedulerinfo.@mansec_usercmd@ \
104         torrus_snmpfailures.@mansec_usercmd@ \
105         torrus_srvderive.@mansec_usercmd@ \
106         torrus_ttproclist.@mansec_usercmd@
107
108
109
110 if POD2MAN_PRESENT
111 install-data-local: $(POD_FILES)
112         for f in $(PODMAN); do \
113           base=`echo $$f | sed -e 's/\\.[0-9a-zA-Z]*$$//'`; \
114           ext=`echo $$f | sed -e 's/^.*\\.//'`; \
115           instdir=$(DESTDIR)$(mandir)/man$$ext; \
116           echo BASE=$$base EXT=$$ext INSTDIR=$$instdir; \
117           $(POD2MAN) --section=$$ext \
118              --release="$(PACKAGE_STRING)" --center=torrus \
119              $$base.pod > $$f || exit 1; \
120           test -d $$instdir || $(mkinstalldirs) $$instdir || exit 1; \
121           $(INSTALL_DATA) $$f $$instdir; \
122           rm $$f; \
123         done
124 endif
125
126
127 SUFFIXES = .pod.in .pod
128
129 .PRECIOUS: $(POD_FILES)
130
131 .pod.in.pod:
132         $(SUBST) $<  > $@
133
134 pods: $(POD_FILES)