1 # Makefile for regex documentation.
3 # Copyright (C) 1992 Free Software Foundation, Inc.
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)
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.
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.
19 # Installation directories.
21 infodir = $(prefix)/info
24 VPATH = @srcdir@:../@srcdir@
27 INSTALL_DATA = @INSTALL_DATA@
29 MAKEINFO = makeinfo --no-split
34 default all: regex.info regex.dvi
37 # We need to include some code from regex.h.
38 regex.texi: xregex.texi
40 gawk -f include.awk -vsource=../$(srcdir)/regex.h \
41 <../$(srcdir)/doc/xregex.texi \
50 $(TEX) ../$(srcdir)/doc/regex.texi
52 regex.info: regex.texi
53 $(MAKEINFO) ../$(srcdir)/doc/regex.texi
55 # I know of no way to make a good TAGS file from Texinfo source.
62 -mkdir $(prefix) $(infodir)
63 for i in *.info*; do $(INSTALL_DATA) $$i $(infodir)/$$i; done
67 rm -f regex.?? *.dvi *.log *.toc
71 for f in regex.??s; do if test -z "`cat $$f`"; then rm -f $$f; fi; done
74 rm -f *.info* regex.??? regex.texi TAGS
77 rm -f patch* *~* *\#* *.orig *.rej *.bak core a.out
78 .PHONY: mostlyclean clean distclean realclean extraclean
80 Makefile: Makefile.in ../config.status
81 (cd ..; sh config.status)
83 # Prevent GNU make 3 from overflowing arg limit on system V.
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
91 ln $(distfiles) $(distdir)