source: perl/modules/Makefile.am @ b80bae0

release-1.10
Last change on this file since b80bae0 was b80bae0, checked in by Anders Kaseorg <andersk@mit.edu>, 12 years ago
Distribute more files in ‘make dist’ Signed-off-by: Anders Kaseorg <andersk@mit.edu>
  • Property mode set to 100644
File size: 1005 bytes
RevLine 
[35c5bd8]1MODULES = Jabber IRC WordWrap Twitter Facebook
[b9c8d28]2
3EXTRA_DIST = $(MODULES:=/Makefile.PL) $(MODULES:=/inc) $(MODULES:=/lib)
[b80bae0]4EXTRA_DIST += \
5    Facebook/README \
6    Twitter/README \
7    Twitter/twitter.example
[b9c8d28]8
9all-local: $(MODULES)
10$(MODULES): %: %/Makefile
11        (cd $* && $(MAKE) $*.par)
12
13MODULES_MAKEFILE = $(MODULES:=/Makefile)
14$(MODULES_MAKEFILE): %/Makefile: %/Makefile.PL
[636de2a]15        $(AM_V_GEN)(cd $* && perl -I../../lib Makefile.PL)
[b9c8d28]16
17MODULES_CLEAN = $(MODULES:%=clean_%)
18clean-local: $(MODULES_CLEAN)
19$(MODULES_CLEAN): clean_%:
[0f5b08e]20        cd $* && { test ! -f Makefile || $(MAKE) realclean; }
21        rm -f $*/$*.par
[b9c8d28]22
23MODULES_INSTALL = $(MODULES:%=module_install_%)
24install-data-local: $(MODULES_INSTALL)
25installdirs-local:
26        $(mkinstalldirs) ${DESTDIR}${pkgdatadir}/modules/
27$(MODULES_INSTALL): module_install_%: % installdirs-local
28        ${INSTALL_DATA} $*/$*.par ${DESTDIR}${pkgdatadir}/modules/$*.par
29
[a870319]30uninstall-local:
31        rm -f $(MODULES:%=${DESTDIR}${pkgdatadir}/modules/%.par)
32
[65b9a40]33.PHONY: $(MODULES) $(MODULES_CLEAN) $(MODULES_INSTALL)
Note: See TracBrowser for help on using the repository browser.