X-Git-Url: https://git.evergreen-ils.org/?p=OpenSRF.git;a=blobdiff_plain;f=src%2Fperl%2FMakefile.am;h=047b503466a1b750a7025e20dcd55143e9ede44b;hp=50ac65595a53d66b2456f3c9e22d1c117a26971b;hb=d2bf9d3835de9249f740b510614d163260bc08b7;hpb=714d065c8de9177f603e2461b2cbd0726666c038 diff --git a/src/perl/Makefile.am b/src/perl/Makefile.am index 50ac655..047b503 100644 --- a/src/perl/Makefile.am +++ b/src/perl/Makefile.am @@ -11,17 +11,35 @@ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. +CLEANFILES = Build +DISTCLEANFILES = Makefile.in Makefile + all: - cp Makefile Makefile.osrf - perl Makefile.PL || make -f Makefile.osrf -s install-perl-fail - make - make test || make -f Makefile.osrf -s install-perl-fail + perl Build.PL || make -s build-perl-fail + ./Build || make -s build-perl-fail -install-perl-fail: +check: + ./Build test || make -s build-perl-fail + +install: + ./Build install + +build-perl-fail: echo - echo ">>> Installation of Perl modules has failed. The most likely" + echo ">>> Build/test of Perl modules has failed. The most likely" echo ">>> possibility is that a dependency is not pre-installed" echo ">>> or that a test has failed." echo ">>> See the messages above this one for more information." echo exit 1 + +install-perl-fail: + echo + echo ">>> Install of Perl modules has failed." + echo ">>> Are you root?" + echo ">>> See the message above this one for more information." + echo + +distclean-local: + rm -rf ./_build + rm -rf ./blib \ No newline at end of file