home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / tar-1.11.8-src.tgz / tar.out / fsf / tar / Makefile.in < prev    next >
Makefile  |  1996-09-28  |  5KB  |  169 lines

  1. # Main Makefile for GNU tar.
  2. # Copyright (C) 1994, 1995 Free Software Foundation, Inc.
  3.  
  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)
  7. # any later version.
  8.  
  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.
  13.  
  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., 675 Mass Ave, Cambridge, MA 02139, USA.
  17.  
  18. PACKAGE = @PACKAGE@
  19. VERSION = @VERSION@
  20.  
  21. @SET_MAKE@
  22. BABYL = rmail/[a-z]* rmail/*/* admin/*/RMAIL
  23. SHELL = /bin/sh
  24. VPATH = @srcdir@
  25. exec_prefix = @exec_prefix@
  26. prefix = @prefix@
  27. srcdir = @srcdir@
  28.  
  29. # This directory's subdirectories are mostly independent; you can cd
  30. # into them and run `make' without going through this Makefile.
  31. # To change the values of `make' variables: instead of editing Makefiles,
  32. # (1) if the variable is set in `config.status', edit `config.status'
  33. #     (which will cause the Makefiles to be regenerated when you run `make');
  34. # (2) otherwise, pass the desired values on the `make' command line.
  35.  
  36. CC = @CC@
  37. CFLAGS = @CFLAGS@
  38. INSTALL = @INSTALL@
  39. INSTALL_DATA = @INSTALL_DATA@
  40. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  41. LDFLAGS = @LDFLAGS@
  42. LIBS = @LIBS@
  43. TOUCH = echo timestamp >
  44.  
  45. bindir = $(exec_prefix)/bin
  46. infodir = $(prefix)/info
  47. libexecdir = $(exec_prefix)/libexec
  48.  
  49. MDEFINES = CC='$(CC)' CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' LIBS='$(LIBS)' \
  50. prefix='$(prefix)' exec_prefix='$(exec_prefix)' \
  51. bindir='$(bindir)' libexecdir='$(libexecdir)' \
  52. infodir='$(infodir)' infodir='$(infodir)' libexecdir='$(libexecdir)'
  53.  
  54. SUBDIRS = doc lib intl src scripts po
  55.  
  56. DISTFILES = \
  57. README AUTHORS BACKLOG COPYING INSTALL NEWS NLS THANKS TODO ChangeLog \
  58. Makefile.in acconfig.h aclocal.m4 configure.in install-sh mkinstalldirs \
  59. config.guess config.sub rebox.el \
  60. config.h.in configure stamp-h.in
  61.  
  62. .SUFFIXES:
  63.  
  64. all install uninstall: config.h
  65.     for subdir in $(SUBDIRS); do \
  66.       echo making $@ in $$subdir; \
  67.       (cd $$subdir && $(MAKE) $(MDEFINES) $@) || exit 1; \
  68.     done
  69.  
  70. info dvi guide:
  71.     cd doc && $(MAKE) $@
  72.  
  73. check: all
  74.     cd src && $(MAKE) $@
  75.  
  76. id tags:
  77.     cd lib && $(MAKE) $@
  78.     cd src && $(MAKE) $@
  79.  
  80. pot:
  81.     cd po && $(MAKE) $(PACKAGE).pot
  82.  
  83. mostlyclean: mostlyclean-recursive mostlyclean-local
  84.  
  85. clean: clean-recursive clean-local
  86.  
  87. distclean: distclean-recursive distclean-local
  88.     rm config.status
  89.  
  90. maintainer-clean: maintainer-clean-recursive maintainer-clean-local
  91.     rm config.status
  92.  
  93. mostlyclean-recursive clean-recursive distclean-recursive \
  94. maintainer-clean-recursive:
  95.     for subdir in $(SUBDIRS); do \
  96.        target=`echo $@ | sed 's/-recursive//'`; \
  97.       echo making $$target in $$subdir; \
  98.       (cd $$subdir && $(MAKE) $$target) || exit 1; \
  99.     done
  100.  
  101. mostlyclean-local:
  102.  
  103. clean-local: mostlyclean-local
  104.  
  105. distclean-local: clean-local
  106.     rm -f Makefile config.cache config.h config.log stamp-h
  107.  
  108. maintainer-clean-local: distclean-local
  109.     @echo "This command is intended only for maintainers to use;"
  110.     @echo "rebuilding the deleted files may require special tools."
  111.  
  112. dist: $(DISTFILES)
  113.     rm -rf $(PACKAGE)-$(VERSION)
  114.     mkdir $(PACKAGE)-$(VERSION)
  115.     chmod 777 $(PACKAGE)-$(VERSION)
  116.     for file in $(DISTFILES); do \
  117.       ln $(srcdir)/$$file $(PACKAGE)-$(VERSION) 2> /dev/null \
  118.         || cp -p $(srcdir)/$$file $(PACKAGE)-$(VERSION); \
  119.     done
  120.     for subdir in $(SUBDIRS); do \
  121.       echo making $@ in $$subdir; \
  122.       mkdir $(PACKAGE)-$(VERSION)/$$subdir; \
  123.       chmod 777 $(PACKAGE)-$(VERSION)/$$subdir; \
  124.       (cd $$subdir && $(MAKE) $@) || exit 1; \
  125.     done
  126.     chmod -R a+r $(PACKAGE)-$(VERSION)
  127.     tar chozf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION)
  128.     rm -rf $(PACKAGE)-$(VERSION)
  129.  
  130. dist-shar: $(DISTFILES)
  131.     rm -rf $(PACKAGE)-$(VERSION)
  132.     mkdir $(PACKAGE)-$(VERSION)
  133.     chmod 777 $(PACKAGE)-$(VERSION)
  134.     @echo "Copying distribution files"
  135.     @for file in $(DISTFILES); do \
  136.       ln $(srcdir)/$$file $(PACKAGE)-$(VERSION) 2> /dev/null \
  137.         || cp -p $(srcdir)/$$file $(PACKAGE)-$(VERSION); \
  138.     done
  139.     for subdir in $(SUBDIRS); do \
  140.       echo making dist in $$subdir; \
  141.       mkdir $(PACKAGE)-$(VERSION)/$$subdir; \
  142.       chmod 777 $(PACKAGE)-$(VERSION)/$$subdir; \
  143.       (cd $$subdir && $(MAKE) dist) || exit 1; \
  144.     done
  145.     chmod -R a+r $(PACKAGE)-$(VERSION)
  146.     shar $(PACKAGE)-$(VERSION) | gzip > $(PACKAGE)-$(VERSION).shar.gz
  147.     rm -rf $(PACKAGE)-$(VERSION)
  148.  
  149. # For an explanation of the following Makefile rules, see node
  150. # `Automatic Remaking' in GNU Autoconf documentation.
  151. Makefile: Makefile.in config.status
  152.     CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status
  153. config.status: configure
  154.     ./config.status --recheck
  155. configure: configure.in aclocal.m4
  156.     cd $(srcdir) && autoconf
  157.  
  158. config.h: stamp-h
  159. stamp-h: config.h.in config.status
  160.     CONFIG_FILES= CONFIG_HEADERS=config.h ./config.status
  161. config.h.in: stamp-h.in
  162. stamp-h.in: configure.in aclocal.m4 acconfig.h
  163.     cd $(srcdir) && autoheader
  164.     $(TOUCH) $(srcdir)/stamp-h.in
  165.  
  166. # Tell versions [3.59,3.63) of GNU make not to export all variables.
  167. # Otherwise a system limit (for SysV at least) may be exceeded.
  168. .NOEXPORT:
  169.