mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
all subdirs are now specified in "perl_dirs" so it's easier to add/remove
directories. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2416 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
ce41d6b18a
commit
aaeea771c2
@ -2,6 +2,8 @@ LIBTOOL = $(PERL_LIBTOOL)
|
||||
|
||||
moduledir = $(libdir)/irssi/modules
|
||||
|
||||
perl_dirs = common irc ui textui
|
||||
|
||||
module_LTLIBRARIES = $(perl_module_lib) $(perl_module_fe_lib)
|
||||
noinst_LTLIBRARIES = $(perl_static_lib) $(perl_static_fe_lib)
|
||||
EXTRA_LTLIBRARIES = \
|
||||
@ -133,7 +135,7 @@ EXTRA_DIST = \
|
||||
$(textui_sources)
|
||||
|
||||
all-local:
|
||||
for dir in common irc ui textui; do \
|
||||
for dir in $(perl_dirs); do \
|
||||
cd $$dir && \
|
||||
if [ ! -f Makefile ]; then \
|
||||
$(perlpath) Makefile.PL $(PERL_MM_PARAMS); \
|
||||
@ -143,17 +145,18 @@ all-local:
|
||||
done
|
||||
|
||||
install-exec-local:
|
||||
for dir in common irc ui textui; do \
|
||||
for dir in $(perl_dirs); do \
|
||||
cd $$dir && $(MAKE) install && cd ..; \
|
||||
done
|
||||
|
||||
clean-generic:
|
||||
rm -f common/Makefile irc/Makefile ui/Makefile textui/Makefile
|
||||
for dir in $(perl_dirs); do rm -f $$dir/Makefile; done
|
||||
|
||||
distclean-generic:
|
||||
-(cd common && $(MAKE) realclean && rm -f Makefile.PL)
|
||||
-(cd irc && $(MAKE) realclean && rm -f Makefile.PL)
|
||||
-(cd ui && $(MAKE) realclean && rm -f Makefile.PL)
|
||||
-(cd textui && $(MAKE) realclean && rm -f Makefile.PL)
|
||||
for dir in $(perl_dirs); do \
|
||||
cd $$dir; \
|
||||
$(MAKE) realclean; rm -f Makefile.PL; \
|
||||
cd ..; \
|
||||
done
|
||||
|
||||
libperl_core_la_LIBADD = $(PERL_LDFLAGS)
|
||||
|
Loading…
Reference in New Issue
Block a user