Changeset eb5e8fc for perl


Ignore:
Timestamp:
Apr 4, 2013, 2:31:41 AM (8 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master
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>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.