From 6218405eed57f4c67f4f6ffd0659e29ca423efe9 Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Wed, 18 May 2011 13:18:14 -0400 Subject: [PATCH] Make Perl 'make check' work without 'make all' Factor the build of Build from Build.PL into its own make target and then make that target a prereq for the other make targets so that we make Build from Build.PL when we build Makefile from Makefile.am and run 'make check' Clear? Signed-off-by: Dan Scott --- Open-ILS/src/perlmods/Makefile.am | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Open-ILS/src/perlmods/Makefile.am b/Open-ILS/src/perlmods/Makefile.am index 047b503466..0d27bfa316 100644 --- a/Open-ILS/src/perlmods/Makefile.am +++ b/Open-ILS/src/perlmods/Makefile.am @@ -14,16 +14,18 @@ CLEANFILES = Build DISTCLEANFILES = Makefile.in Makefile -all: - perl Build.PL || make -s build-perl-fail +all: build-perl ./Build || make -s build-perl-fail -check: +check: build-perl ./Build test || make -s build-perl-fail -install: +install: build-perl ./Build install +build-perl: + perl Build.PL || make -s build-perl-fail + build-perl-fail: echo echo ">>> Build/test of Perl modules has failed. The most likely" @@ -42,4 +44,4 @@ install-perl-fail: distclean-local: rm -rf ./_build - rm -rf ./blib \ No newline at end of file + rm -rf ./blib -- 2.43.2