add condition on number of referred customers, RT#75356
[freeside.git] / torrus / Makefile.am
1 #  Copyright (C) 2002  Stanislav Sinyagin
2 #
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.
7 #
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.
12 #
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.
16
17 # $Id: Makefile.am,v 1.1 2010-12-27 00:03:32 ivan Exp $
18 # Stanislav Sinyagin <ssinyagin@yahoo.com>
19 #
20
21 SUBDIRS = . bin configs doc examples perllib sup xmlconfig 
22
23 EXTRA_DIST = \
24         setup_tools/Bundle/Torrus.pm \
25         setup_tools/replace_rrfw.sh \
26         setup_tools/configure_fhs \
27         setup_tools/check_perlthreading.pl
28
29 noinst_SCRIPTS = \
30         setup_tools/substvars.sh \
31         setup_tools/mkvardir.sh \
32         init.d/torrus
33
34 tmpldir = @tmpldir@
35 dist_tmpl_DATA = \
36         templates/aclexport.xml \
37         templates/adminfo.html \
38         templates/default-chooser.html \
39         templates/default-dir.html \
40         templates/default-helptext.html \
41         templates/default-login.html \
42         templates/default-recursivedir.html \
43         templates/default-rrd.html \
44         templates/default-tset.html \
45         templates/expanded-dir.html \
46         templates/globalsearch.html \
47         templates/overview-subleaves.html \
48         templates/report-index.html \
49         templates/report-monthly.html \
50         templates/report-serviceid.html \
51         templates/report-yearly.html \
52         templates/search.html \
53         templates/html-incblocks.txt \
54         templates/tset-list.html \
55         templates/email-alarm.txt
56
57
58
59 scriptsdir  = @scriptsdir@
60 dist_scripts_DATA = scripts/rrdup_notify.sh
61
62 xmlscriptsdir  = @scriptsdir@/xml
63 dist_xmlscripts_DATA = scripts/xml/extract-skeleton.xsl
64
65
66 discoverydir = @sitedir@/discovery
67 dist_discovery_DATA = discovery/README
68
69 mkvardir=@abs_top_builddir@/setup_tools/mkvardir.sh
70
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)
85
86 HTMLDIR = @abs_top_builddir@/../htdocs
87
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
97
98 UPLOADPATH = \
99    ssinyagin,torrus@web.sourceforge.net:/home/groups/t/to/torrus/htdocs/devel
100
101 upload: dist
102         scp $(distdir).tar.gz TODO $(UPLOADPATH)
103           
104 todoup:
105         scp TODO $(UPLOADPATH)
106
107 dist-hook:
108         date >DIST_REVISION
109         cp DIST_REVISION $(distdir)/