per-agent configuration of batch processors, #71837
[freeside.git] / torrus / configs / Makefile.am
1
2 #  Copyright (C) 2004  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:41 ivan Exp $
19 # Stanislav Sinyagin <ssinyagin@yahoo.com>
20 #
21
22 EXTRA_DIST = \
23         devdiscover-config.pl \
24         devdiscover-siteconfig.pl \
25         email-siteconfig.pl \
26         initscript.conf \
27         notify-siteconfig.pl \
28         snmptrap-siteconfig.pl \
29         torrus-config.pl \
30         torrus-siteconfig.pl \
31         webmux.pl \
32         webmux2.pl
33
34 DISTCLEANFILES = instvars
35
36 instvarsdir = $(cfgdefdir)
37 nodist_instvars_DATA = instvars
38
39 install-data-local:
40         $(mkinstalldirs) $(DESTDIR)$(cfgdefdir) $(DESTDIR)$(siteconfdir)
41         for f in initscript.conf devdiscover-config.pl torrus-config.pl \
42                 webmux.pl webmux2.pl; do \
43           @abs_top_builddir@/setup_tools/substvars.sh $$f > \
44                 $(DESTDIR)$(cfgdefdir)/$$f; \
45         done
46         for f in devdiscover-siteconfig.pl email-siteconfig.pl \
47                  notify-siteconfig.pl \
48                  snmptrap-siteconfig.pl torrus-siteconfig.pl; do \
49           if test ! -r $(DESTDIR)$(siteconfdir)/$$f; then \
50             $(INSTALL_DATA) $$f $(DESTDIR)$(siteconfdir)/$$f; \
51           fi \
52         done