2 # Copyright (C) 2007 Stanislav Sinyagin
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.
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.
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., 675 Mass Ave, Cambridge, MA 02139, USA.
18 # Stanislav Sinyagin <ssinyagin@yahoo.com>
21 # Torrus plugin Automake script
23 SUBST = @abs_top_builddir@/substvars.sh
25 noinst_SCRIPTS = substvars.sh
26 EXTRA_DIST = easytarget.in easytarget-config.pl easytarget-siteconfig.pl
29 ##### Perl modules #####
30 myperlmoddir = $(perllibdir)/Torrus
31 dist_myperlmod_DATA = EasyTarget.pm
34 ##### CLI wrapper #####
35 wrapperdir = $(plugwrapperdir)
36 dist_wrapper_DATA = easytarget-wrapper.sh
39 ##### Executable scripts #####
40 pkgbindir = @pkgbindir@
41 pkgbin_SCRIPTS = easytarget
42 easytarget: easytarget.in
43 $(SUBST) easytarget.in > easytarget
46 ##### Documentation files #####
47 pkgdocdir = @pkgdocdir@
48 dist_pkgdoc_DATA = tp-easytarget.txt tp-easytarget.pod.in
49 SUFFIXES = .pod.in .pod .txt
57 $(mkinstalldirs) $(DESTDIR)$(sitedir)/easytarget
58 for f in easytarget-config.pl; do \
60 $(DESTDIR)$(cfgdefdir)/$$f; \
62 for f in easytarget-siteconfig.pl; do \
63 if test ! -r $(DESTDIR)$(siteconfdir)/$$f; then \
64 $(INSTALL_DATA) $$f $(DESTDIR)$(siteconfdir)/$$f; \
70 ##### What you do not need after "make clean" #####
71 CLEANFILES = $(pkgbin_SCRIPTS)
73 htdocs: tp-easytarget.pod
75 pod2html -css=../torrusdoc.css $$f > ../../htdocs/plugins/$$f.html; \
79 ssinyagin,torrus@web.sourceforge.net:/home/groups/t/to/torrus/htdocs/devel
82 scp $(distdir).tar.gz $(UPLOADPATH)