source: perl/modules/Makefile.am @ cd12307

release-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
Last change on this file since cd12307 was 636de2a, checked in by Anders Kaseorg <andersk@mit.edu>, 12 years ago
Use automake’s silent-rules mode if available, for quieter build output. With automake 1.11, this gives us Linux kernel–style silent output that makes warnings more obvious: GEN perlglue.c CC perlglue.o CCLD barnowl.bin (Use ‘make V=1’ for the traditional verbose output.) Signed-off-by: Anders Kaseorg <andersk@mit.edu>
  • Property mode set to 100644
File size: 803 bytes
Line 
1MODULES = Jabber IRC WordWrap
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) clean))
17
18MODULES_INSTALL = $(MODULES:%=module_install_%)
19install-data-local: $(MODULES_INSTALL)
20installdirs-local:
21        $(mkinstalldirs) ${DESTDIR}${pkgdatadir}/modules/
22$(MODULES_INSTALL): module_install_%: % installdirs-local
23        ${INSTALL_DATA} $*/$*.par ${DESTDIR}${pkgdatadir}/modules/$*.par
24
25.PHONY: $(MODULES) $(MODULES_CLEAN) $(MODULES_INSTALL)
Note: See TracBrowser for help on using the repository browser.