release-1.10release-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
|
Last change
on this file since b4ef908 was
37f27bc,
checked in by Nelson Elhage <nelhage@mit.edu>, 16 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 | |
|---|
| 1 | top_srcdir=@top_srcdir@ |
|---|
| 2 | srcdir=@srcdir@ |
|---|
| 3 | prefix=@prefix@ |
|---|
| 4 | datadir=@datadir@/barnowl |
|---|
| 5 | datarootdir=@datarootdir@ |
|---|
| 6 | |
|---|
| 7 | INSTALL=@INSTALL@ |
|---|
| 8 | INSTALL_PROGRAM=@INSTALL_PROGRAM@ |
|---|
| 9 | INSTALL_DATA=@INSTALL_DATA@ |
|---|
| 10 | install_sh = @install_sh@ |
|---|
| 11 | mkinstalldirs = $(install_sh) -d |
|---|
| 12 | |
|---|
| 13 | PERL_MODULES = Jabber IRC WordWrap |
|---|
| 14 | MODULE_DIRS = $(PERL_MODULES) |
|---|
| 15 | |
|---|
| 16 | all: modules |
|---|
| 17 | clean: modules_clean |
|---|
| 18 | |
|---|
| 19 | modules: $(MODULE_DIRS) |
|---|
| 20 | modules_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 | |
|---|
| 31 | install: installdirs $(PERL_MODULES:%=module_install_%) |
|---|
| 32 | |
|---|
| 33 | installdirs: |
|---|
| 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.