[project @ 1996-01-08 20:28:12 by partain]
[ghc-hetmet.git] / ghc / runtime / regex / doc / Makefile.in
1 # Makefile for regex documentation.
2
3 # Copyright (C) 1992 Free Software Foundation, Inc.
4 #
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2, or (at your option)
8 # any later version.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18
19 # Installation directories.
20 prefix = /usr/local
21 infodir = $(prefix)/info
22
23 srcdir = @srcdir@
24 VPATH = @srcdir@:../@srcdir@
25
26 INSTALL = @INSTALL@
27 INSTALL_DATA = @INSTALL_DATA@
28
29 MAKEINFO = makeinfo --no-split
30 SHELL = /bin/sh
31 TEX = tex
32 TEXINDEX = texindex
33
34 default all: regex.info regex.dvi
35 .PHONY: default all
36
37 # We need to include some code from regex.h.
38 regex.texi: xregex.texi
39         rm -f $@
40         gawk -f include.awk -vsource=../$(srcdir)/regex.h \
41           <../$(srcdir)/doc/xregex.texi \
42           | expand >$@
43         chmod a-w $@
44
45 regex.dvi: regex.cps
46         $(TEX) regex.texi
47 regex.cps: regex.cp
48         $(TEXINDEX) regex.??
49 regex.cp: regex.texi
50         $(TEX) ../$(srcdir)/doc/regex.texi
51
52 regex.info: regex.texi
53         $(MAKEINFO) ../$(srcdir)/doc/regex.texi
54
55 # I know of no way to make a good TAGS file from Texinfo source.
56 TAGS:
57
58 check:
59 .PHONY: check
60
61 install: regex.info
62         -mkdir $(prefix) $(infodir)
63         for i in *.info*; do $(INSTALL_DATA) $$i $(infodir)/$$i; done
64 .PHONY: install
65
66 clean mostlyclean:
67         rm -f regex.?? *.dvi *.log *.toc
68
69 distclean: clean
70         rm -f Makefile
71         for f in regex.??s; do if test -z "`cat $$f`"; then rm -f $$f; fi; done
72
73 realclean: distclean
74         rm -f *.info* regex.??? regex.texi TAGS
75
76 extraclean: distclean
77         rm -f patch* *~* *\#* *.orig *.rej *.bak core a.out
78 .PHONY: mostlyclean clean distclean realclean extraclean
79
80 Makefile: Makefile.in ../config.status
81         (cd ..; sh config.status)
82
83 # Prevent GNU make 3 from overflowing arg limit on system V.
84 .NOEXPORT:
85
86 # Assumes $(distdir) is the place to put our files.
87 distfiles = Makefile.in *.texi texinfo.tex include.awk \
88             regex.info* regex.aux regex.cps
89 dist: Makefile regex.info regex.cps
90         mkdir $(distdir)
91         ln $(distfiles) $(distdir)
92 .PHONY: dist