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 \
|
|
38 url-pgp.el url-vars.el url-wais.el urlauth.el mm.el md5.el \
|
|
39 ssl.el base64.el url.el socks.el
|
|
40
|
|
41 CUSTOMSOURCES = widget.el widget-edit.el
|
|
42 CUSTOMOBJECTS = $(CUSTOMSOURCES:.el=.elc)
|
|
43 URLOBJECTS = $(URLSOURCES:.el=.elc)
|
|
44
|
70
|
45 SOURCES = \
|
80
|
46 w3.el w3-display.el w3-e19.el w3-parse.el w3-print.el \
|
70
|
47 w3-vars.el w3-xemac.el w3-style.el w3-about.el w3-hot.el \
|
80
|
48 w3-toolbar.el font.el w3-sysdp.el w3-annotat.el w3-auto.el \
|
|
49 w3-forms.el images.el w3-imap.el w3-emulate.el w3-menu.el \
|
|
50 w3-keyword.el w3-mouse.el w3-widget.el w3-speak.el w3-prefs.el \
|
|
51 w3-latex.el dsssl.el css.el mule-sysdp.el $(CUSTOMSOURCES) \
|
|
52 $(URLSOURCES)
|
14
|
53
|
70
|
54 OBJECTS = \
|
80
|
55 w3.elc w3-display.elc w3-e19.elc w3-parse.elc w3-print.elc \
|
|
56 w3-vars.elc w3-xemac.elc w3-style.elc w3-about.elc w3-hot.elc \
|
70
|
57 w3-toolbar.elc font.elc w3-annotat.elc w3-auto.elc \
|
|
58 w3-forms.elc images.elc w3-imap.elc w3-emulate.elc w3-menu.elc \
|
80
|
59 w3-keyword.elc w3-mouse.elc w3-widget.elc w3-speak.elc \
|
|
60 w3-prefs.elc w3-latex.elc css.elc dsssl.elc mule-sysdp.elc \
|
|
61 $(CUSTOMOBJECTS) $(URLOBJECTS)
|
0
|
62
|
70
|
63 DISTFILES = Makefile ChangeLog $(SOURCES) w3.txi docomp.el \
|
|
64 clean-cache default.css
|
0
|
65
|
|
66 .SUFFIXES: .elc .el .el,v
|
|
67
|
|
68 .el.elc:
|
80
|
69 $(EMACS) $(BATCHFLAGS) $(DEPS) -f batch-byte-compile $<
|
0
|
70
|
80
|
71 w3: docomp.el $(OBJECTS)
|
38
|
72 @echo Build of w3 complete...
|
|
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 $(INSTALL) -m 644 w3.info* $(infodir)
|
|
83 $(INSTALL) -m 644 default.css $(confdir)/stylesheet
|
|
84 $(INSTALL) -m 644 html32.dsl $(confdir)/
|
0
|
85
|
|
86 clean:
|
|
87 $(RM) $(OBJECTS)
|
|
88
|
|
89 w3.info: w3.txi
|
|
90 @$(MAKEINFO) w3.txi
|
|
91
|
|
92 w3.dvi: w3.txi
|
|
93 tex w3.txi
|
|
94 texindex w3.cp w3.fn w3.ky w3.pg w3.tp w3.vr
|
|
95 tex w3.txi
|
|
96 $(RM) w3.cp w3.fn w3.ky w3.pg w3.tp w3.vr \
|
|
97 w3.cps w3.fns w3.kys w3.pgs w3.tps w3.vrs \
|
|
98 w3.log w3.toc w3.aux
|
|
99
|
80
|
100 w3-display.elc: w3-display.el css.el font.el w3-imap.el
|
|
101 css.elc: css.el font.el
|
|
102 w3.elc: css.el w3-vars.el
|