1 # Main Makefile for GNU tar.
2 # Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc.
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2, or (at your option)
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
19 AUTOMAKE_OPTIONS = gnits dist-shar
21 BABYL = rmail/* admin/*/RMAIL
22 EXTRA_DIST = AC-PATCHES AM-PATCHES BI-PATCHES PORTS rebox.el
23 SUBDIRS = doc lib intl src scripts po tests
25 all-local: $(CONFIG_HEADER)
33 dist-zoo: $(DISTFILES)
36 distdir=`cd $(distdir) && pwd` \
38 && automake --include-deps --output-dir=$$distdir
39 @for file in $(DISTFILES); do \
40 test -f $(distdir)/$$file \
41 || cp -p $(srcdir)/$$file $(distdir)/$$file; \
43 for subdir in $(SUBDIRS); do \
44 test -d $(distdir)/$$subdir \
45 || mkdir $(distdir)/$$subdir \
47 chmod 777 $(distdir)/$$subdir; \
48 (cd $$subdir && $(MAKE) dist) || exit 1; \
50 @sublist="$(DIST_SUBDIRS)"; \
51 for dir in $$sublist; do \
52 echo copying directory $$dir; \
53 tar -chf - $$dir | (cd $(distdir) && tar -xBpf -); \
55 chmod -R a+r $(distdir)
56 find $(distdir) -type f | xargs dosfn
57 # find $(distdir) -type f | xargs recode :ibmpc
58 mv $(distdir) $(PACKAGE)
59 find $(PACKAGE) -type f | zoo ahIq $(PACKAGE).zoo