Added distcheck rule needed for test suite.
Showing
1 changed file
with
31 additions
and
1 deletions
... | @@ -3,7 +3,7 @@ ACLOCAL_AMFLAGS = -I m4 | ... | @@ -3,7 +3,7 @@ ACLOCAL_AMFLAGS = -I m4 |
3 | 3 | ||
4 | SUBDIRS = include doc m4 lib MySql mailbox frm from pop3d imap4d \ | 4 | SUBDIRS = include doc m4 lib MySql mailbox frm from pop3d imap4d \ |
5 | mail sieve scripts libmu_scm guimb messages comsat readmsg \ | 5 | mail sieve scripts libmu_scm guimb messages comsat readmsg \ |
6 | mail.local mail.remote dotlock | 6 | mail.local mail.remote dotlock mh |
7 | 7 | ||
8 | EXTRA_DIST = mailutils.spec mailutils.spec.in README-alpha COPYING.FDL | 8 | EXTRA_DIST = mailutils.spec mailutils.spec.in README-alpha COPYING.FDL |
9 | 9 | ||
... | @@ -12,3 +12,33 @@ release: | ... | @@ -12,3 +12,33 @@ release: |
12 | 12 | ||
13 | rpm: dist | 13 | rpm: dist |
14 | rpm -ta --clean mailutils-$(VERSION).tar.gz | 14 | rpm -ta --clean mailutils-$(VERSION).tar.gz |
15 | |||
16 | |||
17 | ## Override distcheck rule. | ||
18 | distcheck: dist | ||
19 | $(am__remove_distdir) | ||
20 | GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf - | ||
21 | chmod -R a-w $(distdir); chmod a+w $(distdir) | ||
22 | chmod -R u+w $(distdir)/mail/testsuite/spool; | ||
23 | chmod -R u+w $(distdir)/mail/testsuite/folder; | ||
24 | mkdir $(distdir)/=build | ||
25 | mkdir $(distdir)/=inst | ||
26 | chmod a-w $(distdir) | ||
27 | dc_install_base=`$(am__cd) $(distdir)/=inst && pwd` \ | ||
28 | && cd $(distdir)/=build \ | ||
29 | && ../configure --srcdir=.. --prefix=$$dc_install_base \ | ||
30 | $(DISTCHECK_CONFIGURE_FLAGS) \ | ||
31 | && $(MAKE) $(AM_MAKEFLAGS) \ | ||
32 | && $(MAKE) $(AM_MAKEFLAGS) dvi \ | ||
33 | && $(MAKE) $(AM_MAKEFLAGS) check \ | ||
34 | && $(MAKE) $(AM_MAKEFLAGS) install \ | ||
35 | && $(MAKE) $(AM_MAKEFLAGS) installcheck \ | ||
36 | && $(MAKE) $(AM_MAKEFLAGS) uninstall \ | ||
37 | && $(MAKE) $(AM_MAKEFLAGS) dist-gzip \ | ||
38 | && rm -f $(distdir).tar.gz \ | ||
39 | && $(MAKE) $(AM_MAKEFLAGS) distcleancheck | ||
40 | $(am__remove_distdir) | ||
41 | @echo "$(distdir).tar.gz is ready for distribution" | \ | ||
42 | sed 'h;s/./=/g;p;x;p;x' | ||
43 | |||
44 | ... | ... |
-
Please register or sign in to post a comment