# Copyright (C) 2009 Equinox Software, Inc. # Shawn Boyette # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. bin_SCRIPTS = Build lib/OpenILS/Utils/Cronscript.pm CLEANFILES = $(bin_SCRIPTS) DISTCLEANFILES = Makefile.in Makefile do_subst = $(SED) -e 's,[@]sysconfdir@,$(sysconfdir),g' all: build-perl ./Build || make -s build-perl-fail check: build-perl ./Build test || make -s build-perl-fail livecheck: build-perl ./Build test --test_files live_t || make -s build-perl-fail install: build-perl ./Build install build-perl: lib/OpenILS/Utils/Cronscript.pm @if [ "${PERL_BASE}" = 'x' ]; then perl Build.PL --destdir $(DESTDIR) || make -s build-perl-fail; else perl Build.PL --install_base ${PERL_BASE} --destdir $(DESTDIR) || make -s build-perl-fail; fi; lib/OpenILS/Utils/Cronscript.pm: Makefile lib/OpenILS/Utils/Cronscript.pm.in $(do_subst) lib/OpenILS/Utils/Cronscript.pm.in > "$@" build-perl-fail: echo 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