buried more whitesapce
[torrus-plus.git] / src / Makefile.am
blobbf09110f8aba91b063c97b6bc500b58c5eb45632
1 #  Copyright (C) 2002  Stanislav Sinyagin
3 #  This program is free software; you can redistribute it and/or modify
4 #  it under the terms of the GNU General Public License as published by
5 #  the Free Software Foundation; either version 2 of the License, or
6 #  (at your option) any later version.
8 #  This program is distributed in the hope that it will be useful,
9 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
10 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 #  GNU General Public License for more details.
13 #  You should have received a copy of the GNU General Public License
14 #  along with this program; if not, write to the Free Software
15 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
17 # Stanislav Sinyagin <ssinyagin@yahoo.com>
20 SUBDIRS = . bin configs doc examples perllib sup xmlconfig
22 EXTRA_DIST = \
23         setup_tools/Bundle/Torrus.pm \
24         setup_tools/replace_rrfw.sh \
25         setup_tools/configure_fhs \
26         setup_tools/check_perlthreading.pl
28 noinst_SCRIPTS = \
29         setup_tools/substvars.sh \
30         setup_tools/mkvardir.sh \
31         init.d/torrus
33 tmpldir = @tmpldir@
34 dist_tmpl_DATA = \
35         templates/aclexport.xml \
36         templates/adminfo.html \
37         templates/default-chooser.html \
38         templates/default-dir.html \
39         templates/default-helptext.html \
40         templates/default-login.html \
41         templates/default-recursivedir.html \
42         templates/default-rrd.html \
43         templates/default-tset.html \
44         templates/expanded-dir.html \
45         templates/globalsearch.html \
46         templates/overview-subleaves.html \
47         templates/report-index.html \
48         templates/report-monthly.html \
49         templates/report-serviceid.html \
50         templates/report-yearly.html \
51         templates/search.html \
52         templates/html-incblocks.txt \
53         templates/iframe-rrd.html \
54         templates/tset-list.html \
55         templates/email-alarm.txt
59 scriptsdir  = @scriptsdir@
60 dist_scripts_DATA = scripts/rrdup_notify.sh
62 xmlscriptsdir  = @scriptsdir@/xml
63 dist_xmlscripts_DATA = scripts/xml/extract-skeleton.xsl
66 discoverydir = @sitedir@/discovery
67 dist_discovery_DATA = discovery/README
69 mkvardir=@abs_top_builddir@/setup_tools/mkvardir.sh
71 install-data-local:
72         @echo Testing if prefix has changed during make
73         test "$(prefix)" = "@prefix@"
74         $(mkvardir) $(DESTDIR)$(dbhome)
75         $(mkvardir) $(DESTDIR)$(cachedir)
76         $(mkvardir) $(DESTDIR)$(piddir)
77         $(mkvardir) $(DESTDIR)$(reportsdir)
78         $(mkvardir) $(DESTDIR)$(logdir)
79         $(mkvardir) $(DESTDIR)$(sesstordir)
80         $(mkvardir) $(DESTDIR)$(seslockdir)
81         $(mkinstalldirs) $(DESTDIR)$(tmpluserdir)
82         $(mkinstalldirs) $(DESTDIR)$(plugtorruscfgdir)
83         $(mkinstalldirs) $(DESTDIR)$(plugdevdisccfgdir)
84         $(mkinstalldirs) $(DESTDIR)$(plugwrapperdir)
86 HTMLDIR = @abs_top_builddir@/../htdocs
88 htdocs:
89         cd doc; make htdocs
90         @for f in $(dist_mibs_DATA); do \
91           f2=$(HTMLDIR)/`basename $$f`; \
92           if test ! -f $$f2 -o $$f -nt $$f2; then \
93             echo "cp $$f $$f2"; \
94             cp $$f $$f2; \
95           fi; \
96         done
98 UPLOADPATH = \
99    ssinyagin,torrus@web.sourceforge.net:/home/groups/t/to/torrus/htdocs/devel
101 upload: dist
102         scp $(distdir).tar.gz TODO $(UPLOADPATH)
104 todoup:
105         scp TODO $(UPLOADPATH)
107 dist-hook:
108         date >DIST_REVISION
109         git branch -vv >>DIST_REVISION
110         cp DIST_REVISION $(distdir)/
113 PERLCRITIC_CMD = ${PERLCRITIC} --profile=critic.profile
115 critic:
116         @if test ${PERLCRITIC} != no; then \
117           ${PERLCRITIC_CMD} `egrep -l '^\#..PERL' bin/*.in`; \
118           ${PERLCRITIC_CMD} perllib/Torrus/; \
119         else \
120           echo 'perlcritic command not found'; \
121         fi