80
|
1 # where the w3 lisp files should go
|
|
2 prefix = /usr/local
|
|
3 infodir = $(prefix)/info
|
|
4 datadir = $(prefix)/share
|
|
5 lispdir = $(datadir)/emacs/site-lisp
|
|
6 confdir = $(datadir)/emacs/w3
|
|
7
|
0
|
8 # what emacs is called on your system
|
|
9 EMACS = emacs
|
|
10
|
2
|
11 # How to install a file
|
|
12 INSTALL = install
|
0
|
13
|
|
14 # Various other stuff used
|
|
15 RM = rm -f
|
|
16 CP = cp
|
|
17
|
|
18 # Change this to be how to convert texinfo files into info files
|
|
19 # examples:
|
|
20 # $(EMACS) -batch -q -f batch-texinfo-format
|
|
21 # makeinfo
|
|
22 MAKEINFO = makeinfo
|
|
23
|
|
24 ############## no user servicable parts beyond this point ###################
|
|
25 # Have to preload a few things to get a nice clean compile
|
2
|
26
|
0
|
27 DEPS = -l ./docomp.el -l ./w3-vars.el
|
|
28
|
|
29 # compile with noninteractive and relatively clean environment
|
|
30 BATCHFLAGS = -batch -q -no-site-file
|
|
31
|
|
32 # files that contain variables and macros that everything else depends on
|
|
33 CORE = docomp.el
|
|
34
|
80
|
35 URLSOURCES = \
|
|
36 url-nfs.el url-file.el url-cookie.el url-parse.el url-irc.el \
|
|
37 url-gopher.el url-http.el url-mail.el url-misc.el url-news.el \
|
82
|
38 url-pgp.el url-vars.el url-wais.el url-auth.el mm.el md5.el \
|
|
39 url-gw.el ssl.el base64.el url.el socks.el
|
80
|
40
|
|
41 CUSTOMSOURCES = widget.el widget-edit.el
|
|
42 CUSTOMOBJECTS = $(CUSTOMSOURCES:.el=.elc)
|
|
43 URLOBJECTS = $(URLSOURCES:.el=.elc)
|
|
44
|
70
|
45 SOURCES = \
|
82
|
46 $(CUSTOMSOURCES) $(URLSOURCES) mule-sysdp.el w3-widget.el \
|
|
47 w3-imap.el css.el dsssl.el font.el images.el w3-vars.el \
|
|
48 w3-style.el w3-keyword.el w3-forms.el w3-emulate.el \
|
|
49 w3-annotat.el w3-auto.el w3-menu.el w3-mouse.el w3-toolbar.el \
|
|
50 w3-prefs.el w3-speak.el w3-latex.el w3-parse.el w3-display.el \
|
|
51 w3-print.el w3-about.el w3-hot.el w3-e19.el w3-xemac.el w3.el
|
14
|
52
|
82
|
53 OBJECTS = $(SOURCES:.el=.elc)
|
0
|
54
|
82
|
55 # Warning! Currently, the following file can _NOT_ be bytecompiled.
|
|
56 EXTRAS = w3-sysdp.el
|
0
|
57
|
|
58 .SUFFIXES: .elc .el .el,v
|
|
59
|
|
60 .el.elc:
|
80
|
61 $(EMACS) $(BATCHFLAGS) $(DEPS) -f batch-byte-compile $<
|
0
|
62
|
80
|
63 w3: docomp.el $(OBJECTS)
|
38
|
64 @echo Build of w3 complete...
|
|
65
|
80
|
66 all: w3.info w3
|
0
|
67
|
|
68 install: all
|
80
|
69 @echo Installing in $(lispdir)
|
|
70 @( if [ ! -d $(lispdir) ]; then mkdir -p $(lispdir); fi )
|
|
71 @( if [ ! -d $(infodir) ]; then mkdir -p $(infodir); fi )
|
|
72 @( if [ ! -d $(confdir) ]; then mkdir -p $(confdir); fi )
|
|
73 $(INSTALL) -m 644 $(SOURCES) $(OBJECTS) $(lispdir)
|
82
|
74 $(INSTALL) -m 644 $(EXTRAS) $(lispdir)
|
80
|
75 $(INSTALL) -m 644 w3.info* $(infodir)
|
|
76 $(INSTALL) -m 644 default.css $(confdir)/stylesheet
|
|
77 $(INSTALL) -m 644 html32.dsl $(confdir)/
|
0
|
78
|
|
79 clean:
|
|
80 $(RM) $(OBJECTS)
|
|
81
|
|
82 w3.info: w3.txi
|
|
83 @$(MAKEINFO) w3.txi
|
|
84
|
|
85 w3.dvi: w3.txi
|
|
86 tex w3.txi
|
|
87 texindex w3.cp w3.fn w3.ky w3.pg w3.tp w3.vr
|
|
88 tex w3.txi
|
|
89 $(RM) w3.cp w3.fn w3.ky w3.pg w3.tp w3.vr \
|
|
90 w3.cps w3.fns w3.kys w3.pgs w3.tps w3.vrs \
|
|
91 w3.log w3.toc w3.aux
|
|
92
|
80
|
93 w3-display.elc: w3-display.el css.el font.el w3-imap.el
|
|
94 css.elc: css.el font.el
|
|
95 w3.elc: css.el w3-vars.el
|