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:
|
118
|
20 # $(EMACS) -batch -q -l texinfmt -f batch-texinfo-format
|
0
|
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 \
|
102
|
38 url-vars.el url-auth.el mm.el md5.el url-gw.el ssl.el base64.el \
|
116
|
39 url.el socks.el url-cache.el url-ns.el
|
80
|
40
|
98
|
41 CUSTOMSOURCES = # widget.el widget-edit.el
|
80
|
42 CUSTOMOBJECTS = $(CUSTOMSOURCES:.el=.elc)
|
|
43 URLOBJECTS = $(URLSOURCES:.el=.elc)
|
|
44
|
70
|
45 SOURCES = \
|
82
|
46 $(CUSTOMSOURCES) $(URLSOURCES) mule-sysdp.el w3-widget.el \
|
136
|
47 devices.el w3-imap.el css.el dsssl.el dsssl-flow.el font.el \
|
|
48 images.el w3-vars.el w3-cus.el w3-style.el w3-keyword.el \
|
|
49 w3-forms.el w3-emulate.el w3-props.el w3-auto.el w3-menu.el \
|
|
50 w3-mouse.el w3-toolbar.el w3-prefs.el w3-speak.el w3-latex.el \
|
|
51 w3-parse.el w3-display.el w3-print.el w3-about.el w3-hot.el \
|
|
52 w3-e19.el w3-xemac.el w3.el w3-script.el w3-jscript.el \
|
|
53 w3-elisp.el
|
14
|
54
|
82
|
55 OBJECTS = $(SOURCES:.el=.elc)
|
0
|
56
|
82
|
57 # Warning! Currently, the following file can _NOT_ be bytecompiled.
|
|
58 EXTRAS = w3-sysdp.el
|
0
|
59
|
|
60 .SUFFIXES: .elc .el .el,v
|
|
61
|
|
62 .el.elc:
|
80
|
63 $(EMACS) $(BATCHFLAGS) $(DEPS) -f batch-byte-compile $<
|
0
|
64
|
114
|
65 w3: check-custom docomp.el $(OBJECTS)
|
|
66 @echo Build of w3 complete...
|
|
67
|
|
68 xemacs-w3: docomp.el $(OBJECTS)
|
|
69 @echo Build of w3 complete...
|
|
70
|
120
|
71 fast: check-custom docomp.el
|
|
72 $(EMACS) $(BATCHFLAGS) $(DEPS) -f batch-byte-compile $(SOURCES)
|
|
73
|
80
|
74 all: w3.info w3
|
0
|
75
|
|
76 install: all
|
80
|
77 @echo Installing in $(lispdir)
|
|
78 @( if [ ! -d $(lispdir) ]; then mkdir -p $(lispdir); fi )
|
|
79 @( if [ ! -d $(infodir) ]; then mkdir -p $(infodir); fi )
|
|
80 @( if [ ! -d $(confdir) ]; then mkdir -p $(confdir); fi )
|
|
81 $(INSTALL) -m 644 $(SOURCES) $(OBJECTS) $(lispdir)
|
82
|
82 $(INSTALL) -m 644 $(EXTRAS) $(lispdir)
|
80
|
83 $(INSTALL) -m 644 w3.info* $(infodir)
|
|
84 $(INSTALL) -m 644 default.css $(confdir)/stylesheet
|
|
85 $(INSTALL) -m 644 html32.dsl $(confdir)/
|
0
|
86
|
|
87 clean:
|
|
88 $(RM) $(OBJECTS)
|
|
89
|
114
|
90 check-custom:
|
|
91 @./custom-check $(EMACS)
|
|
92
|
0
|
93 w3.info: w3.txi
|
|
94 @$(MAKEINFO) w3.txi
|
|
95
|
|
96 w3.dvi: w3.txi
|
|
97 tex w3.txi
|
|
98 texindex w3.cp w3.fn w3.ky w3.pg w3.tp w3.vr
|
|
99 tex w3.txi
|
|
100 $(RM) w3.cp w3.fn w3.ky w3.pg w3.tp w3.vr \
|
|
101 w3.cps w3.fns w3.kys w3.pgs w3.tps w3.vrs \
|
|
102 w3.log w3.toc w3.aux
|
|
103
|
138
|
104 w3-vars.elc: w3-cus.elc w3-vars.el
|
|
105 w3-display.elc: w3-display.el css.elc font.elc w3-imap.elc
|
|
106 css.elc: css.el font.elc
|
|
107 w3.elc: css.elc w3-vars.elc w3.el
|
|
108 dsssl.elc: dsssl.el dsssl-flow.elc
|