Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • perl/modules/Makefile.am

    r35c5bd8 reb5e8fc  
    22
    33EXTRA_DIST = $(MODULES:=/Makefile.PL) $(MODULES:=/inc) $(MODULES:=/lib)
     4EXTRA_DIST += \
     5    Facebook/README \
     6    Twitter/README \
     7    Twitter/twitter.example
    48
    59all-local: $(MODULES)
     
    913MODULES_MAKEFILE = $(MODULES:=/Makefile)
    1014$(MODULES_MAKEFILE): %/Makefile: %/Makefile.PL
     15        [ $(srcdir) = . ] || cp -srf --no-preserve=mode -- $(abs_srcdir)/$*/. $*
    1116        $(AM_V_GEN)(cd $* && perl -I../../lib Makefile.PL)
    1217
     
    1419clean-local: $(MODULES_CLEAN)
    1520$(MODULES_CLEAN): clean_%:
    16         (cd $* && (test ! -f Makefile || $(MAKE) clean))
     21        if [ $(srcdir) = . ]; then \
     22            (cd $* && { test ! -f Makefile || $(MAKE) realclean; }) && \
     23            rm -f $*/$*.par; \
     24        else \
     25            rm -rf $*; \
     26        fi
    1727
    1828MODULES_INSTALL = $(MODULES:%=module_install_%)
     
    2333        ${INSTALL_DATA} $*/$*.par ${DESTDIR}${pkgdatadir}/modules/$*.par
    2434
     35uninstall-local:
     36        rm -f $(MODULES:%=${DESTDIR}${pkgdatadir}/modules/%.par)
     37
    2538.PHONY: $(MODULES) $(MODULES_CLEAN) $(MODULES_INSTALL)
Note: See TracChangeset for help on using the changeset viewer.