4
0

Makefile.am 1.9 KB

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