Changeset eb5e8fc


Ignore:
Timestamp:
Apr 4, 2013, 2:31:41 AM (11 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.10
Children:
574b952
Parents:
6249a88f
git-author:
Anders Kaseorg <andersk@mit.edu> (12/12/12 19:54:43)
git-committer:
Anders Kaseorg <andersk@mit.edu> (04/04/13 02:31:41)
Message:
Allow building in a separate build directory

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • Makefile.am

    rcb1243be reb5e8fc  
    6969
    7070perlglue.c: perlglue.xs typemap
    71         $(AM_V_GEN)perl $(XSUBPPDIR)/xsubpp $(XSUBPPFLAGS) -prototypes perlglue.xs > perlglue.c
     71        $(AM_V_GEN)perl $(XSUBPPDIR)/xsubpp $(XSUBPPFLAGS) -prototypes $< > $@
    7272
    7373varstubs.c: stubgen.pl variable.c
  • configure.ac

    r06e04a9 reb5e8fc  
    100100dnl Find the location of perl XSUBPP
    101101AC_MSG_CHECKING(for the perl xsubpp precompiler)
    102 XSUBPPDIR="`(perl -MExtUtils::MakeMaker -e 'print ExtUtils::MakeMaker->new({NAME => qw(owl)})->tool_xsubpp;') | grep \^XSUBPPDIR | sed -e 's/XSUBPPDIR = //g;'`"
     102XSUBPPDIR="`cd "$srcdir" && perl -MExtUtils::MakeMaker -e 'print ExtUtils::MakeMaker->new({NAME => qw(owl)})->tool_xsubpp;' | grep \^XSUBPPDIR | sed -e 's/XSUBPPDIR = //g;'`"
    103103if test -n "${XSUBPPDIR}"; then
    104104   AC_MSG_RESULT(${XSUBPPDIR})
  • perl/modules/Makefile.am

    rb80bae0 reb5e8fc  
    1313MODULES_MAKEFILE = $(MODULES:=/Makefile)
    1414$(MODULES_MAKEFILE): %/Makefile: %/Makefile.PL
     15        [ $(srcdir) = . ] || cp -srf --no-preserve=mode -- $(abs_srcdir)/$*/. $*
    1516        $(AM_V_GEN)(cd $* && perl -I../../lib Makefile.PL)
    1617
     
    1819clean-local: $(MODULES_CLEAN)
    1920$(MODULES_CLEAN): clean_%:
    20         cd $* && { test ! -f Makefile || $(MAKE) realclean; }
    21         rm -f $*/$*.par
     21        if [ $(srcdir) = . ]; then \
     22            (cd $* && { test ! -f Makefile || $(MAKE) realclean; }) && \
     23            rm -f $*/$*.par; \
     24        else \
     25            rm -rf $*; \
     26        fi
    2227
    2328MODULES_INSTALL = $(MODULES:%=module_install_%)
Note: See TracChangeset for help on using the changeset viewer.