annotate lisp/w3/Makefile @ 70:131b0175ea99 r20-0b30

Import from CVS: tag r20-0b30
author cvs
date Mon, 13 Aug 2007 09:02:59 +0200
parents 28a7c63c7e1e
children 1ce6082ce73f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 # what emacs is called on your system
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2 EMACS = emacs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
4 # How to install a file
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
5 INSTALL = install
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 # Various other stuff used
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 RM = rm -f
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 CP = cp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 62
diff changeset
11 # where the Info file should go
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 62
diff changeset
12 INFODIR = ../info
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 62
diff changeset
13
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 62
diff changeset
14 # where the w3 lisp files should go
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 62
diff changeset
15 LISPDIR = $$HOME/lisp
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 62
diff changeset
16 URLDIR = ../url
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 62
diff changeset
17
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 62
diff changeset
18 # Change this to be where your .emacs file is stored
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 62
diff changeset
19 DOTEMACS = $$HOME/.emacs
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 62
diff changeset
20
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 62
diff changeset
21 # Where the Emacs-W3 configuration files should be installed
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 62
diff changeset
22 DOTDIR = $$HOME/.w3
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 62
diff changeset
23
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 # Change this to be how to convert texinfo files into info files
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 # examples:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 # $(EMACS) -batch -q -f batch-texinfo-format
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 # makeinfo
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 MAKEINFO = makeinfo
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 ############## no user servicable parts beyond this point ###################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 # Have to preload a few things to get a nice clean compile
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
32
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 DEPS = -l ./docomp.el -l ./w3-vars.el
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 # compile with noninteractive and relatively clean environment
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 BATCHFLAGS = -batch -q -no-site-file
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 # files that contain variables and macros that everything else depends on
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 CORE = docomp.el
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 62
diff changeset
41 SOURCES = \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 62
diff changeset
42 w3.el w3-draw.el w3-e19.el w3-mule.el w3-parse.el w3-print.el \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 62
diff changeset
43 w3-vars.el w3-xemac.el w3-style.el w3-about.el w3-hot.el \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 62
diff changeset
44 w3-toolbar.el font.el w3-sysdp.el \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 62
diff changeset
45 w3-annotat.el w3-auto.el w3-forms.el images.el w3-imap.el \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 62
diff changeset
46 w3-emulate.el w3-menu.el w3-keyword.el w3-mouse.el widget.el \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 62
diff changeset
47 widget-edit.el w3-widget.el w3-speak.el w3-prefs.el w3-latex.el
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 2
diff changeset
48
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 62
diff changeset
49 OBJECTS = \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 62
diff changeset
50 w3.elc w3-draw.elc w3-e19.elc w3-mule.elc w3-parse.elc \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 62
diff changeset
51 w3-print.elc w3-vars.elc w3-xemac.elc w3-style.elc \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 62
diff changeset
52 w3-about.elc w3-hot.elc \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 62
diff changeset
53 w3-toolbar.elc font.elc w3-annotat.elc w3-auto.elc \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 62
diff changeset
54 w3-forms.elc images.elc w3-imap.elc w3-emulate.elc w3-menu.elc \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 62
diff changeset
55 w3-keyword.elc w3-mouse.elc widget.elc widget-edit.elc \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 62
diff changeset
56 w3-widget.elc w3-speak.elc w3-prefs.elc w3-latex.elc
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 62
diff changeset
58 DISTFILES = Makefile ChangeLog $(SOURCES) w3.txi docomp.el \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 62
diff changeset
59 clean-cache default.css
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 .SUFFIXES: .elc .el .el,v
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63 .el.elc:
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 62
diff changeset
64 URLDIR=$(URLDIR) $(EMACS) $(BATCHFLAGS) $(DEPS) \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 62
diff changeset
65 -f batch-byte-compile $<
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 62
diff changeset
67 w3: $(URLDIR) docomp.el $(OBJECTS)
38
1a767b41a199 Import from CVS: tag r19-15b102
cvs
parents: 36
diff changeset
68 @echo Build of w3 complete...
1a767b41a199 Import from CVS: tag r19-15b102
cvs
parents: 36
diff changeset
69
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 62
diff changeset
70 $(URLDIR):
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 62
diff changeset
71 @echo "Please install the URL package in $(URLDIR) first."
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 62
diff changeset
72 @/bin/false
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 62
diff changeset
73
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 62
diff changeset
74 all: w3.info w3 emacs
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 install: all
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 62
diff changeset
77 @echo Installing in $(LISPDIR)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 62
diff changeset
78 $(INSTALL) -d $(LISPDIR)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 62
diff changeset
79 $(INSTALL) -m 644 $(SOURCES) $(OBJECTS) $(LISPDIR)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 62
diff changeset
80 $(INSTALL) -d $(INFODIR)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 62
diff changeset
81 $(INSTALL) -m 644 w3.info* $(INFODIR)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 62
diff changeset
82 $(INSTALL) -d $(DOTDIR)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 62
diff changeset
83 $(INSTALL) -m 644 default.css $(DOTDIR)/stylesheet
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 62
diff changeset
84
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 62
diff changeset
85 emacs:
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 62
diff changeset
86 @echo Adding w3 setup to $(DOTEMACS)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 62
diff changeset
87 URLDIR=$(URLDIR) $(EMACS) -batch -q -l docomp.el -f hack-dot-emacs \
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 62
diff changeset
88 $(DOTEMACS) $(LISPDIR) $(URLDIR)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 clean:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91 $(RM) $(OBJECTS)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93 w3.info: w3.txi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94 @$(MAKEINFO) w3.txi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96 w3.dvi: w3.txi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97 tex w3.txi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98 texindex w3.cp w3.fn w3.ky w3.pg w3.tp w3.vr
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99 tex w3.txi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100 $(RM) w3.cp w3.fn w3.ky w3.pg w3.tp w3.vr \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101 w3.cps w3.fns w3.kys w3.pgs w3.tps w3.vrs \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102 w3.log w3.toc w3.aux
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103