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 <dscott@laurentian.ca>
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"
distclean-local:
rm -rf ./_build
- rm -rf ./blib
\ No newline at end of file
+ rm -rf ./blib