home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1993 #1 / MONSTER.ISO / prog / gen / regex011.taz / regex011 / regex-0.11 / doc / Makefile.in < prev    next >
Encoding:
Makefile  |  1992-09-13  |  2.3 KB  |  92 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.           | expand >$@
  41.     chmod a-w $@
  42.  
  43. regex.dvi: regex.cps
  44.     $(TEX) regex.texi
  45. regex.cps: regex.cp
  46.     $(TEXINDEX) regex.??
  47. regex.cp: regex.texi
  48.     $(TEX) $<
  49.  
  50. regex.info: regex.texi
  51.     $(MAKEINFO) $<
  52.  
  53. # I know of no way to make a good TAGS file from Texinfo source.
  54. TAGS:
  55.  
  56. check:
  57. .PHONY: check
  58.  
  59. install: regex.info
  60.     -mkdir $(prefix) $(infodir)
  61.     for i in *.info*; do $(INSTALL_DATA) $$i $(infodir)/$$i; done
  62. .PHONY: install
  63.  
  64. clean mostlyclean:
  65.     rm -f regex.?? *.dvi *.log *.toc
  66.  
  67. distclean: clean
  68.     rm -f Makefile
  69.     for f in regex.??s; do if test -z "`cat $$f`"; then rm -f $$f; fi; done
  70.  
  71. realclean: distclean
  72.     rm -f *.info* regex.??? regex.texi TAGS
  73.  
  74. extraclean: distclean
  75.     rm -f patch* *~* *\#* *.orig *.rej *.bak core a.out
  76. .PHONY: mostlyclean clean distclean realclean extraclean
  77.  
  78. Makefile: Makefile.in ../config.status
  79.     (cd ..; sh config.status)
  80.  
  81. # Prevent GNU make 3 from overflowing arg limit on system V.
  82. .NOEXPORT:
  83.  
  84. # Assumes $(distdir) is the place to put our files.
  85. distfiles = Makefile.in *.texi texinfo.tex include.awk \
  86.             regex.info* regex.aux regex.cps
  87. dist: Makefile regex.info regex.cps
  88.     mkdir $(distdir)
  89.     ln $(distfiles) $(distdir)
  90. .PHONY: dist
  91.