summaryrefslogtreecommitdiff
path: root/doc/Makefile.in
blob: 3b09d1767f2dbd366de629af38b073422b37ab93 (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
93
94
95
96
97
# Makefile for the various bits of documentation.
#
# Copyright (C) 1992, 2004 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.

# For `install'.
prefix = /usr/local
infodir = $(prefix)/info

INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@

MAKEINFO = makeinfo
MAKEINFO_FLAGS = --split-size=500000

TEX = tex '\nonstopmode \input'
TEXINDEX = texindex

SHELL = /bin/sh

default: fontu.info

all: INSTALL dvi

dvi: fontu.dvi
fontu.dvi: fontu.cps
	$(TEX) fontu.texi
fontu.cps: fontu.cp
	$(TEXINDEX) fontu.??
fontu.cp: *.texi
	$(TEX) fontu.texi

info: fontu.info
fontu.info: *.texi
	$(MAKEINFO) $(MAKEINFO_FLAGS) ../$(srcdir)/doc/fontu.texi

install: fontu.info
	for i in fontu.info*; do $(INSTALL_DATA) $$i $(infodir)/$$i; done

update:
	emacs -batch -l update.el

# We don't automatically generate dependencies.
depend:

# Separate the installation instructions into a separate file, for the
# benefit of people who don't want to look at the info file.
INSTALL: fontu.info
	sed -n '/Node: Installation/,/Good luck./p' fontu.info-1 \
          | tr -d '\037' > $@

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

# `make dist' should only be called from the top-level Makefile, as it
# depends on $(version), $(top_distdir), and $(dir).
# 
distdir = ../$(top_distdir)/$(dir)
distfiles = ChangeLog Makefile.in update.el *.texi

dist::
	mkdir $(distdir)
	ln Makefile $(distfiles) $(distdir)
	cp -p $(plain)/texinfo.tex $(distdir)
#
# Have to add the version number and date before making the Info file.
	(cd $(distdir); \
         add-version $(version) fontu.texi intro.texi; \
         add-date fontu.texi; \
 	 $(MAKE) INSTALL fontu.cps distclean)
	mv $(distdir)/INSTALL ../$(top_distdir)/INSTALL

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

distclean: clean
	rm -f Makefile
	for f in fontu.??s; do if test ! -s $$f; then rm -f $$f; fi; done

extraclean: distclean
	rm -f *~ \#* patch* *.orig *.rej *.bak *.ckp core a.out

realclean: distclean
	rm -f *.info* fontu.??? INSTALL