summaryrefslogtreecommitdiff
path: root/support/ultratex/texi/Makefile
blob: 1194e37c4fad8cccee52db4a24190f384fddd935 (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
# 'make info' produces info files, as does 'make texinfo'
# 'make dv' produces dvi files (and lots of crap)
# 'make dvi' produces dvi files and lots of crap, then erases the crap
# 'make all' produces both info and dvi files, and cleans up afterwards
# 'make install' copies the info files to /usr/local/info (or the value
#     of INFODIR, if you change it)
# 'make html' produces html files (but requires a perl script: texi2html)
#     to get html files, change the next variable to point to the perl
#     script texi2html.  Also, if you run this by typing 'perl texi2html',
#     then the variable PERL should be set to perl.  If you run it by
#     typing 'texi2html', then the variable PERL should be set to nothing:
#     PERL=
#  
TEXI2HTML=texi2html
PERL=perl
#
TEXI2DVI=texi2dvi
MAKEINFO=makeinfo
TEXI2FLAG=-menu -split_chapter 
INFODIR=/usr/local/info

all: texinfo dv clean

info: texinfo

texinfo:
	$(MAKEINFO) ultra.texi; $(MAKEINFO) light.texi

dv:
	$(TEXI2DVI) light.texi; $(TEXI2DVI) ultra.texi

dvi: dv clean

html:
	$(PERL) $(TEXI2HTML) $(TEXI2FLAG) light.texi; \
	$(PERL) $(TEXI2HTML) $(TEXI2FLAG) ultra.texi

clean:
	'rm' -f *.aux *.cp *.fn *.ky *.log *.pg *.toc *.tp *.vr *.fns *.cps *.vrs

distclean:
	'rm' -f *.info *.dvi

install:
	cp ultra.info $(INFODIR)
	cp light.info $(INFODIR)