/[slime]/slime/doc/Makefile
ViewVC logotype

Contents of /slime/doc/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.15 - (show annotations)
Wed Nov 18 10:51:34 2009 UTC (4 years, 5 months ago) by heller
Branch: MAIN
CVS Tags: SLIME-2-3, FAIRLY-STABLE, byte-stream, HEAD
Changes since 1.14: +6 -0 lines
* slime.texi: Recommend slime-repl and slime-fancy in the Loading
  Contribs section.

* Makefile (publish): New target
1 # This file has been placed in the public domain.
2 #
3 # Where to put the info file(s). NB: the GNU Coding Standards (GCS)
4 # and the Filesystem Hierarchy Standard (FHS) differ on where info
5 # files belong. The GCS says /usr/local/info; the FHS says
6 # /usr/local/share/info. Many distros obey the FHS, but people who
7 # installed their emacs from source probably have a GCS-ish file
8 # hierarchy.
9 infodir=/usr/local/info
10
11 # What command to use to install info file(s)
12 INSTALL_CMD=install -m 644
13
14 # Info files generated here.
15 infofiles=slime.info
16
17 TEXI = slime.texi contributors.texi
18
19 all: slime.info slime.pdf html/index.html
20
21 slime.dvi: $(TEXI)
22 texi2dvi slime.texi
23
24 slime.ps: slime.dvi
25 dvips -o $@ $<
26
27 slime.info: $(TEXI)
28 makeinfo $<
29
30 slime.html: $(TEXI)
31 texi2html $<
32
33 html/index.html: $(TEXI)
34 makeinfo -o html --html $<
35
36 html.tgz: html/index.html
37 tar -czf $@ html
38
39 DOCDIR=/project/slime/public_html/doc
40 # invoke this like: make CLUSER=heller publish
41 publish: html.tgz
42 scp html.tgz $(CLUSER)@common-lisp.net:$(DOCDIR)
43 ssh $(CLUSER)@common-lisp.net "cd $(DOCDIR); tar -zxf html.tgz"
44
45 slime.pdf: $(TEXI)
46 texi2pdf $<
47
48 install: install-info
49
50 uninstall: uninstall-info
51
52 # Create contributors.texi, a texinfo table listing all known
53 # contributors of code.
54 #
55 # Explicitly includes Eric Marsden (pre-ChangeLog hacker)
56 #
57 # The gist of this horror show is that the contributor list is piped
58 # into texinfo-tabulate.awk with one name per line, sorted
59 # alphabetically.
60 #
61 # Some special-case TeX-escaping of international characters.
62 contributors.texi: ../ChangeLog Makefile texinfo-tabulate.awk
63 cat ../ChangeLog | \
64 sed -ne '/^[0-9]/{s/^[^ ]* *//; s/ *<.*//; p;}' | \
65 sort | \
66 uniq -c | \
67 sort -nr| \
68 sed -e 's/^[^A-Z]*//' | \
69 awk -f texinfo-tabulate.awk | \
70 sed -e "s/\o341/@'a/g" | \
71 sed -e "s/\o355/@'{@dotless{i}}/g" | \
72 sed -e "s/\o351/@'e/g" | \
73 sed -e "s/\o361/@~n/g" | \
74 sed -e 's/\o370/@o{}/g' \
75 > $@
76
77 #.INTERMEDIATE: contributors.texi
78
79 # Debian's install-info wants a --section argument.
80 section := $(shell grep INFO-DIR-SECTION $(infofiles) | sed 's/INFO-DIR-SECTION //')
81 install-info: slime.info
82 mkdir -p $(infodir)
83 $(INSTALL_CMD) $(infofiles) $(infodir)/$(infofiles)
84 @if (install-info --version && \
85 install-info --version 2>&1 | sed 1q | grep -i -v debian) >/dev/null 2>&1; then \
86 echo "install-info --info-dir=$(infodir) $(infodir)/$(infofiles)";\
87 install-info --info-dir="$(infodir)" "$(infodir)/$(infofiles)" || :;\
88 else \
89 echo "install-info --infodir=$(infodir) --section $(section) $(section) $(infodir)/$(infofiles)" && \
90 install-info --infodir="$(infodir)" --section $(section) ${section} "$(infodir)/$(infofiles)" || :; fi
91
92 uninstall-info:
93 @if (install-info --version && \
94 install-info --version 2>&1 | sed 1q | grep -i -v debian) >/dev/null 2>&1; then \
95 echo "install-info --info-dir=$(infodir) --remove $(infodir)/$(infofiles)";\
96 install-info --info-dir="$(infodir)" --remove "$(infodir)/$(infofiles)" || :;\
97 else \
98 echo "install-info --infodir=$(infodir) --remove $(infodir)/$(infofiles)";\
99 install-info --infodir="$(infodir)" --remove "$(infodir)/$(infofiles)" || :; fi
100 rm -f $(infodir)/$(infofiles)
101
102 clean:
103 rm -f contributors.texi
104 rm -f slime.aux slime.cp slime.cps slime.fn slime.fns slime.ky
105 rm -f slime.kys slime.log slime.pg slime.tmp slime.toc slime.tp
106 rm -f slime.vr slime.vrs
107 rm -f slime.info slime.pdf slime.dvi slime.ps slime.html
108 rm -rf html html.tgz

  ViewVC Help
Powered by ViewVC 1.1.5