diff options
author | Timo Sirainen <cras@irssi.org> | 2001-07-29 03:56:46 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-07-29 03:56:46 +0000 |
commit | 81eb94fa9bdcb8b35273bdde5d6c5f32b24b2cb1 (patch) | |
tree | a0fa76af9ba20e0c77e15d94bf213c68b968e0b1 /src | |
parent | 478f78acc349c91ad297de6b382a3979ab0f347d (diff) | |
download | irssi-81eb94fa9bdcb8b35273bdde5d6c5f32b24b2cb1.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/perl/Makefile.am | 17 |
1 files 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 |