source: perl/modules/Makefile.am @ 0f5b08e

Last change on this file since 0f5b08e was 0f5b08e, checked in by Anders Kaseorg <andersk@mit.edu>, 8 years ago
Clean more files in ‘make clean’ Signed-off-by: Anders Kaseorg <andersk@mit.edu>
  • Property mode set to 100644
File size: 842 bytes
Line 
1MODULES = Jabber IRC WordWrap Twitter Facebook
2
3EXTRA_DIST = $(MODULES:=/Makefile.PL) $(MODULES:=/inc) $(MODULES:=/lib)
4
5all-local: $(MODULES)
6$(MODULES): %: %/Makefile
7        (cd $* && $(MAKE) $*.par)
8
9MODULES_MAKEFILE = $(MODULES:=/Makefile)
10$(MODULES_MAKEFILE): %/Makefile: %/Makefile.PL
11        $(AM_V_GEN)(cd $* && perl -I../../lib Makefile.PL)
12
13MODULES_CLEAN = $(MODULES:%=clean_%)
14clean-local: $(MODULES_CLEAN)
15$(MODULES_CLEAN): clean_%:
16        cd $* && { test ! -f Makefile || $(MAKE) realclean; }
17        rm -f $*/$*.par
18
19MODULES_INSTALL = $(MODULES:%=module_install_%)
20install-data-local: $(MODULES_INSTALL)
21installdirs-local:
22        $(mkinstalldirs) ${DESTDIR}${pkgdatadir}/modules/
23$(MODULES_INSTALL): module_install_%: % installdirs-local
24        ${INSTALL_DATA} $*/$*.par ${DESTDIR}${pkgdatadir}/modules/$*.par
25
26.PHONY: $(MODULES) $(MODULES_CLEAN) $(MODULES_INSTALL)
Note: See TracBrowser for help on using the repository browser.