/[cmucl]/src/docs/cmu-user/Makefile
ViewVC logotype

Contents of /src/docs/cmu-user/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations)
Thu Apr 10 13:49:10 2008 UTC (6 years ago) by rtoy
Branch: MAIN
CVS Tags: sparc-tramp-assem-base, post-merge-intl-branch, merged-unicode-utf16-extfmt-2009-06-11, unicode-utf16-extfmt-2009-03-27, snapshot-2008-08, snapshot-2008-09, sse2-packed-2008-11-12, snapshot-2008-05, snapshot-2008-06, snapshot-2008-07, intl-branch-working-2010-02-19-1000, unicode-string-buffer-impl-base, sse2-base, release-20b-pre1, release-20b-pre2, unicode-string-buffer-base, sse2-packed-base, sparc-tramp-assem-2010-07-19, amd64-dd-start, release-19f-pre1, snapshot-2008-12, snapshot-2008-11, intl-2-branch-base, GIT-CONVERSION, unicode-utf16-sync-2008-12, cross-sol-x86-merged, label-2009-03-16, release-19f-base, merge-sse2-packed, merge-with-19f, intl-branch-working-2010-02-11-1000, unicode-snapshot-2009-05, unicode-snapshot-2009-06, unicode-utf16-sync-2008-07, unicode-utf16-sync-2008-09, unicode-utf16-extfmts-sync-2008-12, RELEASE_20b, unicode-utf16-sync-label-2009-03-16, RELEASE_19f, release-20a-base, cross-sol-x86-base, unicode-utf16-char-support-2009-03-26, unicode-utf16-char-support-2009-03-25, unicode-utf16-extfmts-pre-sync-2008-11, snapshot-2008-10, snapshot-2010-12, snapshot-2010-11, unicode-utf16-sync-2008-11, snapshot-2011-09, snapshot-2011-06, snapshot-2011-07, snapshot-2011-04, snapshot-2011-02, snapshot-2011-03, snapshot-2011-01, pre-merge-intl-branch, snapshot-2010-05, snapshot-2010-04, snapshot-2010-07, snapshot-2010-06, snapshot-2010-01, snapshot-2010-03, snapshot-2010-02, snapshot-2010-08, label-2009-03-25, cross-sol-x86-2010-12-20, sse2-checkpoint-2008-10-01, intl-branch-2010-03-18-1300, sse2-merge-with-2008-11, sse2-merge-with-2008-10, RELEASE_20a, release-20a-pre1, snapshot-2009-11, snapshot-2009-12, unicode-utf16-extfmt-2009-06-11, portable-clx-import-2009-06-16, unicode-utf16-string-support, cross-sparc-branch-base, intl-branch-base, unicode-utf16-base, portable-clx-base, snapshot-2009-08, snapshot-2009-02, snapshot-2009-01, snapshot-2009-07, snapshot-2009-05, snapshot-2009-04, HEAD
Branch point for: RELEASE-19F-BRANCH, portable-clx-branch, cross-sparc-branch, RELEASE-20B-BRANCH, unicode-string-buffer-branch, sparc-tramp-assem-branch, sse2-packed-branch, RELEASE-20A-BRANCH, amd64-dd-branch, unicode-string-buffer-impl-branch, intl-branch, unicode-utf16-branch, cross-sol-x86-branch, sse2-branch, intl-2-branch, unicode-utf16-extfmt-branch
Changes since 1.9: +4 -2 lines
Trac #14:  cmucl.css missing from html tarball

cmucl.css:
o New file, copied from cmucl-www.  Remember to update from cmucl-www
  whenever that version changes!

Makefile:
o Include cmucl.css in html tarball.
1 # -*- makefile -*-
2 #
3 #
4 # This Makefile contains rules for converting the LaTeX sources of the
5 # CMUCL User's Manual into various formats: Postscript, PDF, DVI, HTML
6 # and info. The useful targets are:
7 #
8 # make cmu-user.ps (A4 paper)
9 # make cmu-user-letter.ps (letter paper)
10 # make cmu-user.dvi
11 # make cmu-user.pdf
12 # make cmu-user.html
13 # make cmu-user.info
14 # make clean
15
16 # A number of addon LaTeX packages are used in the manual, to support
17 # features such as hyperlinks and multiple indexes. A current
18 # distribution of teTeX contains everything that is necessary to
19 # generate the Postscript, PDF and DVI formats. HTML output is
20 # generated using the Hevea tool, which is available from
21 # <URL:http://pauillac.inria.fr/~maranget/hevea/>. The HTML files are
22 # then split into sections using the hacha tool (distributed with
23 # hevea), and cleaned up using tidy. Note that hevea 1.10 produces
24 # HTML that looks a bit weird. However, hevea 1.06 works nicely.
25 #
26 # The generated DVI file should include clickable hyperlinks. The PDF
27 # output should include a hyperlinked table of contents, hyperlinked
28 # cross-references, and an index. The generated Postscript should use
29 # Postscript fonts that give good quality output at high resolutions.
30
31
32 SHELL = /bin/sh
33 LATEX ?= latex
34 BIBTEX ?= bibtex
35 PDFLATEX ?= pdflatex
36 HEVEA ?= hevea
37 HACHA ?= hacha
38 TIDY ?= tidy
39
40 FILES = *.tex
41
42 .SUFFIXES:
43 .SUFFIXES: .tex .dvi .ps .ps1 .pdf .html .info
44
45
46 all: cmu-user.ps
47
48
49 # Runs LaTeX once, then reruns LaTeX as many times as necessary to get
50 # rid of the "undefined references" message, generates the indexes,
51 # the reruns LaTeX. The dependency on the .tex files means that the
52 # DVI file will be rebuilt only if one of the included LaTeX files has
53 # been modified.
54 %.dvi : %.tex $(FILES)
55 $(LATEX) $<
56 @while ( grep Rerun $*.log > /dev/null ); do \
57 $(LATEX) $<; \
58 done
59 if [ "$<" = "cmu-user.tex" ]; then $(MAKE) index; else $(MAKE) index-letter; fi
60
61 $(LATEX) $<
62
63 %.pdf : %.tex $(FILES)
64 $(PDFLATEX) $<
65 @while ( grep Rerun $*.log > /dev/null ); do \
66 $(PDFLATEX) $<; \
67 done
68 if [ "$<" = "cmu-user.tex" ]; then $(MAKE) index; else $(MAKE) index-letter; fi
69 $(PDFLATEX) $<
70
71 # the "-fix" option to hevea makes it run as many times as necessary
72 # to resolve all cross-references and generate an index.
73 %.html : %.tex $(FILES)
74 $(HEVEA) -fix cmu-user.hva $<
75 $(HACHA) -tocbis $@
76 -$(TIDY) -m *.html
77
78 %.info : %.tex $(FILES)
79 $(HEVEA) -fix -info cmu-user.hva $<
80
81 %.ps1 : %.dvi
82 dvips -o $@ $<
83
84 # convert the Postscript file to duplex (will print double-sided if
85 # the printer supports it)
86 %.ps : %.ps1
87 if [ -x psset ]; then psset -d -o $@ $<; else cp $< $@; fi
88
89 # Tar up the html files. Note: cmucl.css is duplicated here, from the
90 # cmucl-www repository. Please remember to update cmucl.css here
91 # whenever cmucl.css changes in cmucl-www.
92 cmu-user-html.tgz : cmu-user.html
93 mkdir cmu-user
94 cp cmucl.css *.html *.gif cmu-user
95 tar cf - cmu-user | gzip > cmu-user-html.tgz
96
97 # generate Postscript for letter format, instead of for A4 paper
98 .INTERMEDIATE: cmu-user-letter.tex
99 cmu-user-letter.tex: cmu-user.tex
100 cp $< $@
101 perl -pi -e 's/documentclass\[a4paper\]/documentclass\[letter\]/' $@
102
103
104 clean:
105 rm -f *.log *.bbl *.blg *.ps *.pdf *.aux *.lof *.toc *.gif *.out *.ilg
106 rm -f *.vdx *.cdx *.tdx *.fdx *.idx *.cnd *.fnd *.tnd *.vnd *.haux
107 rm -f *.html *.hcnd *.htnd *.hvnd *.hfnd *.htoc
108
109 index:
110 makeindex cmu-user.tdx -o cmu-user.tnd
111 makeindex cmu-user.vdx -o cmu-user.vnd
112 makeindex cmu-user.fdx -o cmu-user.fnd
113 makeindex cmu-user.cdx -o cmu-user.cnd
114
115 index-letter:
116 makeindex cmu-user-letter.tdx -o cmu-user-letter.tnd
117 makeindex cmu-user-letter.vdx -o cmu-user-letter.vnd
118 makeindex cmu-user-letter.fdx -o cmu-user-letter.fnd
119 makeindex cmu-user-letter.cdx -o cmu-user-letter.cnd
120
121 .PHONY: clean index
122
123 # EOF

  ViewVC Help
Powered by ViewVC 1.1.5