home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / regex-0.12 / doc / Makefile.in < prev    next >
Encoding:
Makefile  |  1992-11-20  |  2.4 KB  |  93 lines

  1. # Makefile for regex documentation.
  2. # Copyright (C) 1992 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. # Installation directories.
  19. prefix = /usr/local
  20. infodir = $(prefix)/info
  21.  
  22. srcdir = @srcdir@
  23. VPATH = @srcdir@:../@srcdir@
  24.  
  25. INSTALL = @INSTALL@
  26. INSTALL_DATA = @INSTALL_DATA@
  27.  
  28. MAKEINFO = makeinfo --no-split
  29. SHELL = /bin/sh
  30. TEX = tex
  31. TEXINDEX = texindex
  32.  
  33. default all: regex.info regex.dvi
  34. .PHONY: default all
  35.  
  36. # We need to include some code from regex.h.
  37. regex.texi: xregex.texi
  38.     rm -f $@
  39.     gawk -f include.awk -vsource=../$(srcdir)/regex.h \
  40.       <../$(srcdir)/doc/xregex.texi \
  41.           | expand >$@
  42.     chmod a-w $@
  43.  
  44. regex.dvi: regex.cps
  45.     $(TEX) regex.texi
  46. regex.cps: regex.cp
  47.     $(TEXINDEX) regex.??
  48. regex.cp: regex.texi
  49.     $(TEX) ../$(srcdir)/doc/regex.texi
  50.  
  51. regex.info: regex.texi
  52.     $(MAKEINFO) ../$(srcdir)/doc/regex.texi
  53.  
  54. # I know of no way to make a good TAGS file from Texinfo source.
  55. TAGS:
  56.  
  57. check:
  58. .PHONY: check
  59.  
  60. install: regex.info
  61.     -mkdir $(prefix) $(infodir)
  62.     for i in *.info*; do $(INSTALL_DATA) $$i $(infodir)/$$i; done
  63. .PHONY: install
  64.  
  65. clean mostlyclean:
  66.     rm -f regex.?? *.dvi *.log *.toc
  67.  
  68. distclean: clean
  69.     rm -f Makefile
  70.     for f in regex.??s; do if test -z "`cat $$f`"; then rm -f $$f; fi; done
  71.  
  72. realclean: distclean
  73.     rm -f *.info* regex.??? regex.texi TAGS
  74.  
  75. extraclean: distclean
  76.     rm -f patch* *~* *\#* *.orig *.rej *.bak core a.out
  77. .PHONY: mostlyclean clean distclean realclean extraclean
  78.  
  79. Makefile: Makefile.in ../config.status
  80.     (cd ..; sh config.status)
  81.  
  82. # Prevent GNU make 3 from overflowing arg limit on system V.
  83. .NOEXPORT:
  84.  
  85. # Assumes $(distdir) is the place to put our files.
  86. distfiles = Makefile.in *.texi texinfo.tex include.awk \
  87.             regex.info* regex.aux regex.cps
  88. dist: Makefile regex.info regex.cps
  89.     mkdir $(distdir)
  90.     ln $(distfiles) $(distdir)
  91. .PHONY: dist
  92.