- Timestamp:
- Jun 20, 2013, 9:25:24 AM (11 years ago)
- Branches:
- master, release-1.10
- Children:
- cf2ebde, 1b17f50, 10c32c9
- Parents:
- 1c22155
- git-author:
- Anders Kaseorg <andersk@mit.edu> (04/10/13 06:23:40)
- git-committer:
- Anders Kaseorg <andersk@mit.edu> (06/20/13 09:25:24)
- Location:
- perl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
perl/lib/Module/Install/BarnOwl.pm
rb8a3e00 re4b8f93 41 41 my $class = ref $self; 42 42 43 my $srcdir = $ENV{BARNOWL_SRCDIR} || '.'; 44 43 45 $self->name("BarnOwl-Module-$name"); 44 $self->all_from("lib/BarnOwl/Module/$name.pm"); 46 $self->all_from("$srcdir/lib/BarnOwl/Module/$name.pm"); 47 $self->makemaker_args(PMLIBDIRS => ["$srcdir/lib"], 48 PMLIBPARENTDIRS => ["$srcdir/lib"]); 45 49 46 50 $self->postamble(<<"END_MAKEFILE"); 47 51 48 52 # --- $class section: 53 54 BARNOWL_SRCDIR = $srcdir 55 export BARNOWL_SRCDIR 49 56 50 57 $name.par: pm_to_blib -
perl/modules/Makefile.am
r1c22155 re4b8f93 11 11 (cd $* && $(MAKE) $*.par) 12 12 13 BARNOWL_PERL := $(shell which perl) -I$(abs_srcdir)/../lib 14 13 15 MODULES_MAKEFILE = $(MODULES:=/Makefile) 14 16 $(MODULES_MAKEFILE): %/Makefile: %/Makefile.PL ../lib/Module/Install/BarnOwl.pm 15 [ $(srcdir) = . ] || cp -srf --no-preserve=mode -- $(abs_srcdir)/$*/. $* 16 $(AM_V_GEN)(cd $* && perl -I../../lib Makefile.PL) 17 $(AM_V_GEN)test -d $* || mkdir $* 18 $(AM_V_at)test $(srcdir) = . || $(LN_S) $(abs_srcdir)/$*/Makefile.PL $*/Makefile.PL 19 $(AM_V_at)(cd $* && BARNOWL_SRCDIR='$(abs_srcdir)/$*' && export BARNOWL_SRCDIR && $(BARNOWL_PERL) Makefile.PL 'PERL=$(BARNOWL_PERL)') 17 20 18 21 MODULES_CLEAN = $(MODULES:%=clean_%) 19 22 clean-local: $(MODULES_CLEAN) 20 23 $(MODULES_CLEAN): clean_%: 21 if [ $(srcdir) = . ]; then \ 22 (cd $* && { test ! -f Makefile || $(MAKE) realclean; }) && \ 23 rm -f $*/$*.par; \ 24 rm -rf $*/inc; \ 25 else \ 26 rm -rf $*; \ 27 fi 24 (cd $* && { test ! -f Makefile || $(MAKE) realclean; }) 25 rm -f $*/$*.par 26 rm -rf $*/inc 27 test $(srcdir) = . || rm -f $*/Makefile.PL 28 28 29 29 MODULES_INSTALL = $(MODULES:%=module_install_%)
Note: See TracChangeset
for help on using the changeset viewer.