]> git.evergreen-ils.org Git - OpenSRF.git/blob - src/perl/Makefile.am
'make' will now just plain make again without proceeding to install.
[OpenSRF.git] / src / perl / Makefile.am
1 # Copyright (C) 2009 Equinox Software, Inc.
2 # Shawn Boyette <sboyette@esilibrary.com>
3 #
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.
8 #
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.
13
14 CLEANFILES = Build
15 DISTCLEANFILES = Makefile.in Makefile
16
17 all:
18         perl Build.PL || make -s build-perl-fail
19         ./Build || make -s build-perl-fail
20         ./Build test || make -s build-perl-fail
21
22 install:
23         ./Build install
24
25 build-perl-fail:
26         echo
27         echo ">>> Build/test of Perl modules has failed. The most likely"
28         echo ">>> possibility is that a dependency is not pre-installed"
29         echo ">>> or that a test has failed."
30         echo ">>> See the messages above this one for more information."
31         echo
32         exit 1
33
34 distclean-local:
35         rm -rf ./_build
36         rm -rf ./blib