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
31 build-perl: lib/OpenILS/Utils/Cronscript.pm
32 perl Build.PL --destdir $(DESTDIR) || make -s build-perl-fail
34 lib/OpenILS/Utils/Cronscript.pm: Makefile lib/OpenILS/Utils/Cronscript.pm.in
35 $(do_subst) lib/OpenILS/Utils/Cronscript.pm.in > "$@"
39 echo ">>> Build/test of Perl modules has failed. The most likely"
40 echo ">>> possibility is that a dependency is not pre-installed"
41 echo ">>> or that a test has failed."
42 echo ">>> See the messages above this one for more information."
48 echo ">>> Install of Perl modules has failed."
49 echo ">>> Are you root?"
50 echo ">>> See the message above this one for more information."