From 81eb94fa9bdcb8b35273bdde5d6c5f32b24b2cb1 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 29 Jul 2001 03:56:46 +0000 Subject: [PATCH] Use INSTALLDIRS=perl option with MakeMaker if perl install directory is specified. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1674 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/perl/Makefile.am | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/perl/Makefile.am b/src/perl/Makefile.am index 70cfee0c..4531dcea 100644 --- a/src/perl/Makefile.am +++ b/src/perl/Makefile.am @@ -98,12 +98,25 @@ noinst_HEADERS = \ perl-signals.h all-local: - for dir in common irc ui; do cd $$dir && if [ ! -f Makefile ]; then if [ "x$(PERL_LIB_DIR)" = "x" ]; then $(perlpath) Makefile.PL; else $(perlpath) Makefile.PL LIB=$(PERL_LIB_DIR) PREFIX=$(PERL_LIB_DIR); fi; fi && ($(MAKE) || $(MAKE)) && cd ..; done + for dir in common irc ui; do \ + cd $$dir && \ + if [ ! -f Makefile ]; then \ + if [ "x$(PERL_LIB_DIR)" = "x" ]; then \ + $(perlpath) Makefile.PL; \ + else \ + $(perlpath) Makefile.PL LIB=$(PERL_LIB_DIR) PREFIX=$(PERL_LIB_DIR) INSTALLDIRS=perl; \ + fi; \ + fi && \ + ($(MAKE) || $(MAKE)) && \ + cd ..; \ + done # FIXME: remove after .99: the libfe_perl must not be used anymore install-exec-local: -(rm -f $(moduledir)/libfe_perl.*) - for dir in common irc ui; do cd $$dir && $(MAKE) install && cd ..; done + for dir in common irc ui; do \ + cd $$dir && $(MAKE) install && cd ..; \ + done clean-generic: rm -f common/Irssi.c irc/Irc.c ui/UI.c