Makefile.am
1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
AUTOMAKE_OPTIONS = gnu 1.6
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 mh
EXTRA_DIST = mailutils.spec mailutils.spec.in README-alpha COPYING.FDL
release:
$(MAKE) dist distdir=$(PACKAGE)-`date +"%Y%m%d"`
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'