[3d19a6]: doc / manual / Makefile Maximize Restore History

Download this file

Makefile    89 lines (63 with data), 1.7 kB

 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
DOCFILES:=$(shell echo *.texinfo)
ROOTFILE:=sbcl.texinfo
TMPFILES:=sbcl.aux sbcl.cp sbcl.fn sbcl.ky sbcl.log sbcl.pg sbcl.toc sbcl.tp sbcl.vr
PSFILE=sbcl.ps
PDFFILE=sbcl.pdf
DVIFILE=sbcl.dvi
INFOFILE=sbcl.info
HTMLDIR=$(basename $(ROOTFILE))
# The value of DOCSTRINGDIR has to end with a slash or you lose (it's
# passed to Lisp's `pathname' function).
DOCSTRINGDIR="docstrings/"
ifeq ($(MAKEINFO),)
MAKEINFO:=makeinfo
endif
ifeq ($(TEXI2PDF),)
TEXI2PDF:=texi2pdf
endif
ifeq ($(DVIPS),)
DVIPS:=dvips
endif
.PHONY: all
all: ps pdf info html
.PHONY: dist
dist: html pdf
# html documentation; output in $(HTMLDIR)
.PHONY: html
html: html-stamp
html-stamp: $(DOCFILES) docstrings
@rm -rf $(HTMLDIR)
$(MAKEINFO) -I $(DOCSTRINGDIR) --html $(ROOTFILE)
touch html-stamp
# Postscript documentation
.PHONY: ps
ps: $(PSFILE)
$(PSFILE): $(DVIFILE)
dvips -o $@ $<
$(DVIFILE): $(DOCFILES) docstrings
texi2dvi -I $(DOCSTRINGDIR) $(ROOTFILE)
# PDF documentation
.PHONY: pdf
pdf: $(PDFFILE)
$(PDFFILE): $(DOCFILES) docstrings
texi2pdf -I $(DOCSTRINGDIR) $(ROOTFILE)
# info docfiles
.PHONY: info
info: $(INFOFILE)
$(INFOFILE): $(DOCFILES) docstrings
$(MAKEINFO) -I $(DOCSTRINGDIR) $(ROOTFILE)
# Texinfo docstring snippets; output hardcoded in docstrings/ for now.
.PHONY: docstrings
docstrings: docstrings-stamp
docstrings-stamp:
DOCSTRINGDIR=$(DOCSTRINGDIR) sh docstrings.sh
touch docstrings-stamp
.PHONY: clean
clean:
rm -f *~ *.bak *.orig \#*\# .\#* texput.log
rm -rf $(HTMLDIR) $(DOCSTRINGDIR)
rm -f $(PSFILE) $(PDFFILE) $(DVIFILE) html-stamp docstrings-stamp
rm -f $(TMPFILES)
rm -f sbcl.info sbcl.info-*
.PHONY: distclean
distclean: clean