]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/perlmods/Makefile.am
Merge branch 'master' of git+ssh://yeti.esilibrary.com/home/evergreen/evergreen-equin...
[working/Evergreen.git] / Open-ILS / src / perlmods / 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
21 check:
22         ./Build test || make -s build-perl-fail
23
24 install:
25         ./Build install
26
27 build-perl-fail:
28         echo
29         echo ">>> Build/test of Perl modules has failed. The most likely"
30         echo ">>> possibility is that a dependency is not pre-installed"
31         echo ">>> or that a test has failed."
32         echo ">>> See the messages above this one for more information."
33         echo
34         exit 1
35
36 install-perl-fail:
37         echo
38         echo ">>> Install of Perl modules has failed."
39         echo ">>> Are you root?"
40         echo ">>> See the message above this one for more information."
41         echo
42
43 distclean-local:
44         rm -rf ./_build
45         rm -rf ./blib