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