0
|
1 # what emacs is called on your system
|
|
2 EMACS = emacs
|
|
3
|
2
|
4 # How to install a file
|
|
5 INSTALL = install
|
0
|
6
|
|
7 # Various other stuff used
|
|
8 RM = rm -f
|
|
9 CP = cp
|
|
10
|
70
|
11 # where the Info file should go
|
|
12 INFODIR = ../info
|
|
13
|
|
14 # where the w3 lisp files should go
|
|
15 LISPDIR = $$HOME/lisp
|
|
16 URLDIR = ../url
|
|
17
|
|
18 # Change this to be where your .emacs file is stored
|
|
19 DOTEMACS = $$HOME/.emacs
|
|
20
|
|
21 # Where the Emacs-W3 configuration files should be installed
|
|
22 DOTDIR = $$HOME/.w3
|
|
23
|
0
|
24 # Change this to be how to convert texinfo files into info files
|
|
25 # examples:
|
|
26 # $(EMACS) -batch -q -f batch-texinfo-format
|
|
27 # makeinfo
|
|
28 MAKEINFO = makeinfo
|
|
29
|
|
30 ############## no user servicable parts beyond this point ###################
|
|
31 # Have to preload a few things to get a nice clean compile
|
2
|
32
|
0
|
33 DEPS = -l ./docomp.el -l ./w3-vars.el
|
|
34
|
|
35 # compile with noninteractive and relatively clean environment
|
|
36 BATCHFLAGS = -batch -q -no-site-file
|
|
37
|
|
38 # files that contain variables and macros that everything else depends on
|
|
39 CORE = docomp.el
|
|
40
|
70
|
41 SOURCES = \
|
|
42 w3.el w3-draw.el w3-e19.el w3-mule.el w3-parse.el w3-print.el \
|
|
43 w3-vars.el w3-xemac.el w3-style.el w3-about.el w3-hot.el \
|
|
44 w3-toolbar.el font.el w3-sysdp.el \
|
|
45 w3-annotat.el w3-auto.el w3-forms.el images.el w3-imap.el \
|
|
46 w3-emulate.el w3-menu.el w3-keyword.el w3-mouse.el widget.el \
|
|
47 widget-edit.el w3-widget.el w3-speak.el w3-prefs.el w3-latex.el
|
14
|
48
|
70
|
49 OBJECTS = \
|
|
50 w3.elc w3-draw.elc w3-e19.elc w3-mule.elc w3-parse.elc \
|
|
51 w3-print.elc w3-vars.elc w3-xemac.elc w3-style.elc \
|
|
52 w3-about.elc w3-hot.elc \
|
|
53 w3-toolbar.elc font.elc w3-annotat.elc w3-auto.elc \
|
|
54 w3-forms.elc images.elc w3-imap.elc w3-emulate.elc w3-menu.elc \
|
|
55 w3-keyword.elc w3-mouse.elc widget.elc widget-edit.elc \
|
|
56 w3-widget.elc w3-speak.elc w3-prefs.elc w3-latex.elc
|
0
|
57
|
70
|
58 DISTFILES = Makefile ChangeLog $(SOURCES) w3.txi docomp.el \
|
|
59 clean-cache default.css
|
0
|
60
|
|
61 .SUFFIXES: .elc .el .el,v
|
|
62
|
|
63 .el.elc:
|
70
|
64 URLDIR=$(URLDIR) $(EMACS) $(BATCHFLAGS) $(DEPS) \
|
|
65 -f batch-byte-compile $<
|
0
|
66
|
70
|
67 w3: $(URLDIR) docomp.el $(OBJECTS)
|
38
|
68 @echo Build of w3 complete...
|
|
69
|
70
|
70 $(URLDIR):
|
|
71 @echo "Please install the URL package in $(URLDIR) first."
|
|
72 @/bin/false
|
|
73
|
|
74 all: w3.info w3 emacs
|
0
|
75
|
|
76 install: all
|
70
|
77 @echo Installing in $(LISPDIR)
|
|
78 $(INSTALL) -d $(LISPDIR)
|
|
79 $(INSTALL) -m 644 $(SOURCES) $(OBJECTS) $(LISPDIR)
|
|
80 $(INSTALL) -d $(INFODIR)
|
|
81 $(INSTALL) -m 644 w3.info* $(INFODIR)
|
|
82 $(INSTALL) -d $(DOTDIR)
|
|
83 $(INSTALL) -m 644 default.css $(DOTDIR)/stylesheet
|
|
84
|
|
85 emacs:
|
|
86 @echo Adding w3 setup to $(DOTEMACS)
|
|
87 URLDIR=$(URLDIR) $(EMACS) -batch -q -l docomp.el -f hack-dot-emacs \
|
|
88 $(DOTEMACS) $(LISPDIR) $(URLDIR)
|
0
|
89
|
|
90 clean:
|
|
91 $(RM) $(OBJECTS)
|
|
92
|
|
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
|