diff options
-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 |