source: perl/modules/Makefile.am @ b80bae0

Last change on this file since b80bae0 was b80bae0, checked in by Anders Kaseorg <andersk@mit.edu>, 10 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
Line 
1MODULES = Jabber IRC WordWrap Twitter Facebook
2
3EXTRA_DIST = $(MODULES:=/Makefile.PL) $(MODULES:=/inc) $(MODULES:=/lib)
4EXTRA_DIST += \
5    Facebook/README \
6    Twitter/README \
7    Twitter/twitter.example
8
9all-local: $(MODULES)
10$(MODULES): %: %/Makefile
11        (cd $* && $(MAKE) $*.par)
12
13MODULES_MAKEFILE = $(MODULES:=/Makefile)
14$(MODULES_MAKEFILE): %/Makefile: %/Makefile.PL
15        $(AM_V_GEN)(cd $* && perl -I../../lib Makefile.PL)
16
17MODULES_CLEAN = $(MODULES:%=clean_%)
18clean-local: $(MODULES_CLEAN)
19$(MODULES_CLEAN): clean_%:
20        cd $* && { test ! -f Makefile || $(MAKE) realclean; }
21        rm -f $*/$*.par
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
30uninstall-local:
31        rm -f $(MODULES:%=${DESTDIR}${pkgdatadir}/modules/%.par)
32
33.PHONY: $(MODULES) $(MODULES_CLEAN) $(MODULES_INSTALL)
Note: See TracBrowser for help on using the repository browser.