annotate lisp/w3/Makefile @ 189:489f57a838ef r20-3b21

Import from CVS: tag r20-3b21
author cvs
date Mon, 13 Aug 2007 09:57:07 +0200
parents 15872534500d
children f53b5ca2e663
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
1 # where the w3 lisp files should go
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
2 prefix = /usr/local
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
3 infodir = $(prefix)/info
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
4 datadir = $(prefix)/share
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
5 lispdir = $(datadir)/emacs/site-lisp
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
6 confdir = $(datadir)/emacs/w3
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
7
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 # what emacs is called on your system
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 EMACS = emacs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
11 # How to install a file
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
12 INSTALL = install
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 # Various other stuff used
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 RM = rm -f
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 CP = cp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 # Change this to be how to convert texinfo files into info files
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 # examples:
118
7d55a9ba150c Import from CVS: tag r20-1b11
cvs
parents: 116
diff changeset
20 # $(EMACS) -batch -q -l texinfmt -f batch-texinfo-format
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 # makeinfo
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 MAKEINFO = makeinfo
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 ############## no user servicable parts beyond this point ###################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 # 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
26
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 DEPS = -l ./docomp.el -l ./w3-vars.el
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 # compile with noninteractive and relatively clean environment
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 BATCHFLAGS = -batch -q -no-site-file
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 # files that contain variables and macros that everything else depends on
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 CORE = docomp.el
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
35 URLSOURCES = \
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
36 url-nfs.el url-file.el url-cookie.el url-parse.el url-irc.el \
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
37 url-gopher.el url-http.el url-mail.el url-misc.el url-news.el \
102
a145efe76779 Import from CVS: tag r20-1b3
cvs
parents: 98
diff changeset
38 url-vars.el url-auth.el mm.el md5.el url-gw.el ssl.el base64.el \
116
9f59509498e1 Import from CVS: tag r20-1b10
cvs
parents: 114
diff changeset
39 url.el socks.el url-cache.el url-ns.el
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
40
98
0d2f883870bc Import from CVS: tag r20-1b1
cvs
parents: 82
diff changeset
41 CUSTOMSOURCES = # widget.el widget-edit.el
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
42 CUSTOMOBJECTS = $(CUSTOMSOURCES:.el=.elc)
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
43 URLOBJECTS = $(URLSOURCES:.el=.elc)
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
44
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 62
diff changeset
45 SOURCES = \
82
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
46 $(CUSTOMSOURCES) $(URLSOURCES) mule-sysdp.el w3-widget.el \
136
b980b6286996 Import from CVS: tag r20-2b2
cvs
parents: 134
diff changeset
47 devices.el w3-imap.el css.el dsssl.el dsssl-flow.el font.el \
b980b6286996 Import from CVS: tag r20-2b2
cvs
parents: 134
diff changeset
48 images.el w3-vars.el w3-cus.el w3-style.el w3-keyword.el \
b980b6286996 Import from CVS: tag r20-2b2
cvs
parents: 134
diff changeset
49 w3-forms.el w3-emulate.el w3-props.el w3-auto.el w3-menu.el \
b980b6286996 Import from CVS: tag r20-2b2
cvs
parents: 134
diff changeset
50 w3-mouse.el w3-toolbar.el w3-prefs.el w3-speak.el w3-latex.el \
b980b6286996 Import from CVS: tag r20-2b2
cvs
parents: 134
diff changeset
51 w3-parse.el w3-display.el w3-print.el w3-about.el w3-hot.el \
b980b6286996 Import from CVS: tag r20-2b2
cvs
parents: 134
diff changeset
52 w3-e19.el w3-xemac.el w3.el w3-script.el w3-jscript.el \
b980b6286996 Import from CVS: tag r20-2b2
cvs
parents: 134
diff changeset
53 w3-elisp.el
14
9ee227acff29 Import from CVS: tag r19-15b90
cvs
parents: 2
diff changeset
54
82
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
55 OBJECTS = $(SOURCES:.el=.elc)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56
82
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
57 # Warning! Currently, the following file can _NOT_ be bytecompiled.
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
58 EXTRAS = w3-sysdp.el
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 .SUFFIXES: .elc .el .el,v
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 .el.elc:
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
63 $(EMACS) $(BATCHFLAGS) $(DEPS) -f batch-byte-compile $<
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64
114
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 110
diff changeset
65 w3: check-custom docomp.el $(OBJECTS)
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 110
diff changeset
66 @echo Build of w3 complete...
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 110
diff changeset
67
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 110
diff changeset
68 xemacs-w3: docomp.el $(OBJECTS)
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 110
diff changeset
69 @echo Build of w3 complete...
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 110
diff changeset
70
120
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
71 fast: check-custom docomp.el
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
72 $(EMACS) $(BATCHFLAGS) $(DEPS) -f batch-byte-compile $(SOURCES)
cca96a509cfe Import from CVS: tag r20-1b12
cvs
parents: 118
diff changeset
73
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
74 all: w3.info w3
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
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
77 @echo Installing in $(lispdir)
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
78 @( if [ ! -d $(lispdir) ]; then mkdir -p $(lispdir); fi )
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
79 @( if [ ! -d $(infodir) ]; then mkdir -p $(infodir); fi )
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
80 @( if [ ! -d $(confdir) ]; then mkdir -p $(confdir); fi )
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
81 $(INSTALL) -m 644 $(SOURCES) $(OBJECTS) $(lispdir)
82
6a378aca36af Import from CVS: tag r20-0b91
cvs
parents: 80
diff changeset
82 $(INSTALL) -m 644 $(EXTRAS) $(lispdir)
80
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
83 $(INSTALL) -m 644 w3.info* $(infodir)
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
84 $(INSTALL) -m 644 default.css $(confdir)/stylesheet
1ce6082ce73f Import from CVS: tag r20-0b90
cvs
parents: 70
diff changeset
85 $(INSTALL) -m 644 html32.dsl $(confdir)/
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 clean:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 $(RM) $(OBJECTS)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89
114
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 110
diff changeset
90 check-custom:
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 110
diff changeset
91 @./custom-check $(EMACS)
8619ce7e4c50 Import from CVS: tag r20-1b9
cvs
parents: 110
diff changeset
92
0
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
138
6608ceec7cf8 Import from CVS: tag r20-2b3
cvs
parents: 136
diff changeset
104 w3-vars.elc: w3-cus.elc w3-vars.el
6608ceec7cf8 Import from CVS: tag r20-2b3
cvs
parents: 136
diff changeset
105 w3-display.elc: w3-display.el css.elc font.elc w3-imap.elc
6608ceec7cf8 Import from CVS: tag r20-2b3
cvs
parents: 136
diff changeset
106 css.elc: css.el font.elc
6608ceec7cf8 Import from CVS: tag r20-2b3
cvs
parents: 136
diff changeset
107 w3.elc: css.elc w3-vars.elc w3.el
6608ceec7cf8 Import from CVS: tag r20-2b3
cvs
parents: 136
diff changeset
108 dsssl.elc: dsssl.el dsssl-flow.elc
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 138
diff changeset
109
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 138
diff changeset
110 autoloads: auto-autoloads.el
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 138
diff changeset
111
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 138
diff changeset
112 auto-autoloads.el: $(SOURCES)
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 138
diff changeset
113 $(EMACS) -batch -q -no-site-file \
189
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 169
diff changeset
114 -eval '(setq autoload-package-name "w3")' \
169
15872534500d Import from CVS: tag r20-3b11
cvs
parents: 138
diff changeset
115 -l autoload \
189
489f57a838ef Import from CVS: tag r20-3b21
cvs
parents: 169
diff changeset
116 -f batch-update-directory .