summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2002-08-06 01:28:42 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2002-08-06 01:28:42 +0000
commiteea84ee8770aa18cc40bececb9ea7cb240d38fd1 (patch)
tree592dfc627ea2fa78b34761960f963672de953a85 /Makefile.am
parent9e41ddf4260abe81b0d897e0da883bafecb57a9c (diff)
downloadmailutils-eea84ee8770aa18cc40bececb9ea7cb240d38fd1.tar.gz
mailutils-eea84ee8770aa18cc40bececb9ea7cb240d38fd1.tar.bz2
Added distcheck rule needed for test suite.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am32
1 files changed, 31 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 1f3a0f387..1f36ba585 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -3,7 +3,7 @@ ACLOCAL_AMFLAGS = -I m4
SUBDIRS = include doc m4 lib MySql mailbox frm from pop3d imap4d \
mail sieve scripts libmu_scm guimb messages comsat readmsg \
- mail.local mail.remote dotlock
+ mail.local mail.remote dotlock mh
EXTRA_DIST = mailutils.spec mailutils.spec.in README-alpha COPYING.FDL
@@ -12,3 +12,33 @@ release:
rpm: dist
rpm -ta --clean mailutils-$(VERSION).tar.gz
+
+
+## Override distcheck rule.
+distcheck: dist
+ $(am__remove_distdir)
+ GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf -
+ chmod -R a-w $(distdir); chmod a+w $(distdir)
+ chmod -R u+w $(distdir)/mail/testsuite/spool;
+ chmod -R u+w $(distdir)/mail/testsuite/folder;
+ mkdir $(distdir)/=build
+ mkdir $(distdir)/=inst
+ chmod a-w $(distdir)
+ dc_install_base=`$(am__cd) $(distdir)/=inst && pwd` \
+ && cd $(distdir)/=build \
+ && ../configure --srcdir=.. --prefix=$$dc_install_base \
+ $(DISTCHECK_CONFIGURE_FLAGS) \
+ && $(MAKE) $(AM_MAKEFLAGS) \
+ && $(MAKE) $(AM_MAKEFLAGS) dvi \
+ && $(MAKE) $(AM_MAKEFLAGS) check \
+ && $(MAKE) $(AM_MAKEFLAGS) install \
+ && $(MAKE) $(AM_MAKEFLAGS) installcheck \
+ && $(MAKE) $(AM_MAKEFLAGS) uninstall \
+ && $(MAKE) $(AM_MAKEFLAGS) dist-gzip \
+ && rm -f $(distdir).tar.gz \
+ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
+ $(am__remove_distdir)
+ @echo "$(distdir).tar.gz is ready for distribution" | \
+ sed 'h;s/./=/g;p;x;p;x'
+
+

Return to:

Send suggestions and report system problems to the System administrator.