home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / gnum4.zip / Makefile.in < prev    next >
Makefile  |  1994-11-05  |  4KB  |  139 lines

  1. # Main Makefile for GNU m4.
  2. # Copyright (C) 1992, 1993, 1994 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. PRODUCT = @PRODUCT@
  19. VERSION = @VERSION@
  20.  
  21. SHELL = /bin/sh
  22. srcdir = @srcdir@
  23. VPATH = @srcdir@
  24. @SET_MAKE@
  25.  
  26. # This directory's subdirectories are mostly independent; you can cd
  27. # into them and run `make' without going through this Makefile.
  28. # To change the values of `make' variables: instead of editing Makefiles,
  29. # (1) if the variable is set in `config.status', edit `config.status'
  30. #     (which will cause the Makefiles to be regenerated when you run `make');
  31. # (2) otherwise, pass the desired values on the `make' command line.
  32.  
  33. CC = @CC@
  34. CFLAGS = @CFLAGS@
  35. INSTALL = @INSTALL@
  36. INSTALL_DATA = @INSTALL_DATA@
  37. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  38. LDFLAGS = @LDFLAGS@
  39. LIBS = @LIBS@
  40.  
  41. prefix = @prefix@
  42. exec_prefix = @exec_prefix@
  43. bindir = $(exec_prefix)/bin
  44. infodir = $(prefix)/info
  45.  
  46. MDEFINES = CC='$(CC)' CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' LIBS='$(LIBS)' \
  47. prefix='$(prefix)' exec_prefix='$(exec_prefix)' \
  48. bindir='$(bindir)' infodir='$(infodir)'
  49.  
  50. SUBDIRS = doc lib src checks examples
  51.  
  52. DISTFILES = README NEWS TODO THANKS COPYING INSTALL ChangeLog c-boxes.el \
  53. configure.in acconfig.h aclocal.m4 mkinstalldirs install-sh Makefile.in \
  54. stamp-h.in config.h.in configure BACKLOG
  55.  
  56. .SUFFIXES:
  57.  
  58. all install uninstall: config.h
  59.     for subdir in $(SUBDIRS); do \
  60.       echo making $@ in $$subdir; \
  61.       (cd $$subdir && $(MAKE) $(MDEFINES) $@) || exit 1; \
  62.     done
  63.  
  64. info dvi:
  65.     cd doc && $(MAKE) $@
  66.  
  67. check: all
  68.     cd checks && $(MAKE) $@
  69.  
  70. tags:
  71.     cd lib && $(MAKE) $@
  72.     cd src && $(MAKE) $@
  73.  
  74. mostlyclean: mostlyclean-recursive mostlyclean-local
  75.  
  76. clean: clean-recursive clean-local
  77.  
  78. distclean: distclean-recursive distclean-local
  79.     rm config.status
  80.  
  81. realclean: realclean-recursive realclean-local
  82.     rm config.status
  83.  
  84. mostlyclean-recursive clean-recursive distclean-recursive realclean-recursive:
  85.     for subdir in $(SUBDIRS); do \
  86.        target=`echo $@ | sed 's/-recursive//'`; \
  87.       echo making $$target in $$subdir; \
  88.       (cd $$subdir && $(MAKE) $$target) || exit 1; \
  89.     done
  90.  
  91. mostlyclean-local:
  92.  
  93. clean-local: mostlyclean-local
  94.  
  95. distclean-local: clean-local
  96.     rm -f Makefile config.cache config.h config.log stamp-h
  97.  
  98. realclean-local: distclean-local
  99.  
  100. dist: $(DISTFILES)
  101.     rm -rf $(PRODUCT)-$(VERSION)
  102.     mkdir $(PRODUCT)-$(VERSION)
  103.     chmod 777 $(PRODUCT)-$(VERSION)
  104.     @echo "Copying distribution files"
  105.     @for file in $(DISTFILES); do \
  106.       ln $(srcdir)/$$file $(PRODUCT)-$(VERSION) 2> /dev/null \
  107.         || cp -p $(srcdir)/$$file $(PRODUCT)-$(VERSION); \
  108.     done
  109.     for subdir in $(SUBDIRS); do \
  110.       echo making $@ in $$subdir; \
  111.       mkdir $(PRODUCT)-$(VERSION)/$$subdir; \
  112.       chmod 777 $(PRODUCT)-$(VERSION)/$$subdir; \
  113.       (cd $$subdir && $(MAKE) $@) || exit 1; \
  114.     done
  115.     chmod -R a+r $(PRODUCT)-$(VERSION)
  116.     tar chozf $(PRODUCT)-$(VERSION).tar.gz $(PRODUCT)-$(VERSION)
  117.     rm -rf $(PRODUCT)-$(VERSION)
  118.  
  119. # For an explanation of the following Makefile rules, see node
  120. # `Automatic Remaking' in GNU Autoconf documentation.
  121. Makefile: Makefile.in config.status
  122.     CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status
  123. config.status: configure
  124.     ./config.status --recheck
  125. configure: configure.in aclocal.m4
  126.     cd $(srcdir) && autoconf
  127.  
  128. config.h: stamp-h
  129. stamp-h: config.h.in config.status
  130.     CONFIG_FILES= CONFIG_HEADERS=config.h ./config.status
  131. config.h.in: stamp-h.in
  132. stamp-h.in: configure.in aclocal.m4 acconfig.h
  133.     cd $(srcdir) && autoheader
  134.     date > $(srcdir)/stamp-h.in
  135.  
  136. # Tell versions [3.59,3.63) of GNU make not to export all variables.
  137. # Otherwise a system limit (for SysV at least) may be exceeded.
  138. .NOEXPORT:
  139.