summaryrefslogtreecommitdiffstats
path: root/gnu/lib/libregex/doc/Makefile.in
blob: 2f5d382c06e57305c1db50ad0cc51e4c3cb111aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# Makefile for regex documentation.
# 
# Copyright (C) 1992 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

# Installation directories.
prefix = /usr/local
infodir = $(prefix)/info

srcdir = @srcdir@
VPATH = @srcdir@:../@srcdir@

INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@

MAKEINFO = makeinfo --no-split
SHELL = /bin/sh
TEX = tex
TEXINDEX = texindex

default all: regex.info regex.dvi
.PHONY: default all

# We need to include some code from regex.h.
regex.texi: xregex.texi
	rm -f $@
	gawk -f include.awk -vsource=../$(srcdir)/regex.h \
	  <../$(srcdir)/doc/xregex.texi \
          | expand >$@
	chmod a-w $@

regex.dvi: regex.cps
	$(TEX) regex.texi
regex.cps: regex.cp
	$(TEXINDEX) regex.??
regex.cp: regex.texi
	$(TEX) ../$(srcdir)/doc/regex.texi

regex.info: regex.texi
	$(MAKEINFO) ../$(srcdir)/doc/regex.texi

# I know of no way to make a good TAGS file from Texinfo source.
TAGS:

check:
.PHONY: check

install: regex.info
	-mkdir $(prefix) $(infodir)
	for i in *.info*; do $(INSTALL_DATA) $$i $(infodir)/$$i; done
.PHONY: install

clean mostlyclean:
	rm -f regex.?? *.dvi *.log *.toc

distclean: clean
	rm -f Makefile
	for f in regex.??s; do if test -z "`cat $$f`"; then rm -f $$f; fi; done

realclean: distclean
	rm -f *.info* regex.??? regex.texi TAGS

extraclean: distclean
	rm -f patch* *~* *\#* *.orig *.rej *.bak core a.out
.PHONY: mostlyclean clean distclean realclean extraclean

Makefile: Makefile.in ../config.status
	(cd ..; sh config.status)

# Prevent GNU make 3 from overflowing arg limit on system V.
.NOEXPORT:

# Assumes $(distdir) is the place to put our files.
distfiles = Makefile.in *.texi texinfo.tex include.awk \
            regex.info* regex.aux regex.cps
dist: Makefile regex.info regex.cps
	mkdir $(distdir)
	ln $(distfiles) $(distdir)
.PHONY: dist
OpenPOWER on IntegriCloud