1 # Copyright (C) 2009 Equinox Software, Inc.
2 # Shawn Boyette <sboyette@esilibrary.com>
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License
6 # as published by the Free Software Foundation; either version 2
7 # of the License, or (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 bin_SCRIPTS = Build lib/OpenILS/Utils/Cronscript.pm
16 CLEANFILES = $(bin_SCRIPTS)
18 DISTCLEANFILES = Makefile.in Makefile
20 do_subst = $(SED) -e 's,[@]sysconfdir@,$(sysconfdir),g'
23 ./Build || make -s build-perl-fail
26 ./Build test || make -s build-perl-fail
29 ./Build test --test_files live_t || make -s build-perl-fail
34 build-perl: lib/OpenILS/Utils/Cronscript.pm
35 @if [ "${PERL_BASE}" = 'x' ]; then perl Build.PL --destdir $(DESTDIR) || make -s build-perl-fail; else perl Build.PL --install_base ${PERL_BASE} --destdir $(DESTDIR) || make -s build-perl-fail; fi;
37 lib/OpenILS/Utils/Cronscript.pm: Makefile lib/OpenILS/Utils/Cronscript.pm.in
38 $(do_subst) lib/OpenILS/Utils/Cronscript.pm.in > "$@"
42 echo ">>> Build/test of Perl modules has failed. The most likely"
43 echo ">>> possibility is that a dependency is not pre-installed"
44 echo ">>> or that a test has failed."
45 echo ">>> See the messages above this one for more information."
51 echo ">>> Install of Perl modules has failed."
52 echo ">>> Are you root?"
53 echo ">>> See the message above this one for more information."