source: perl/modules/Makefile.in @ 37f27bc

release-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
Last change on this file since 37f27bc was 37f27bc, checked in by Nelson Elhage <nelhage@mit.edu>, 9 years ago
Switch the build system to using automake. Use automake for the build system, which lets us clean a bunch of cruft out of Makefile.in.
  • Property mode set to 100644
File size: 969 bytes
Line 
1top_srcdir=@top_srcdir@
2srcdir=@srcdir@
3prefix=@prefix@
4datadir=@datadir@/barnowl
5datarootdir=@datarootdir@
6
7INSTALL=@INSTALL@
8INSTALL_PROGRAM=@INSTALL_PROGRAM@
9INSTALL_DATA=@INSTALL_DATA@
10install_sh = @install_sh@
11mkinstalldirs = $(install_sh) -d
12
13PERL_MODULES = Jabber IRC WordWrap
14MODULE_DIRS = $(PERL_MODULES)
15
16all: modules
17clean: modules_clean
18
19modules: $(MODULE_DIRS)
20modules_clean: $(MODULE_DIRS:%=clean_%)
21
22$(MODULE_DIRS): %: %/Makefile
23        ( cd $@ && $(MAKE) $(notdir $@).par )
24
25$(MODULE_DIRS:=/Makefile): %/Makefile: %/Makefile.PL
26        ( cd $(dir $@) && perl -I../../lib Makefile.PL )
27
28$(MODULE_DIRS:%=clean_%): clean_%:
29        (cd $* && (test ! -f Makefile || $(MAKE) clean))
30
31install: installdirs $(PERL_MODULES:%=module_install_%)
32
33installdirs:
34        $(mkinstalldirs) ${DESTDIR}${datadir}/modules/
35
36$(PERL_MODULES:%=module_install_%): module_install_%:
37        ${INSTALL_DATA} $*/$*.par ${DESTDIR}${datadir}/modules/$*.par
38
39.PHONY: clean modules $(PERL_MODULES:%=module_install_%)
Note: See TracBrowser for help on using the repository browser.