annotate lisp/w3/Makefile @ 0:376386a54a3c r19-14

Import from CVS: tag r19-14
author cvs
date Mon, 13 Aug 2007 08:45:50 +0200
parents
children ac2d302a0011
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 # what emacs is called on your system
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2 EMACS = emacs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 # How to make a directory
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5 # need a -p if you want to make the parents!
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 MKDIR = mkdir
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 # Various other stuff used
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 RM = rm -f
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 CP = cp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 # where the Info file should go
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 INFODIR = ../info
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 # where the w3 lisp files should go
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 LISPDIR = $$HOME/lisp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 URLDIR = ../url
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 # Change this to be where your .emacs file is stored
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 DOTEMACS = $$HOME/.emacs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 # Where the Emacs-W3 configuration files should be installed
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 DOTDIR = $$HOME/.w3/
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 # Change this to be how to convert texinfo files into info files
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 # examples:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 # $(EMACS) -batch -q -f batch-texinfo-format
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 # makeinfo
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 MAKEINFO = makeinfo
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 ############## no user servicable parts beyond this point ###################
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 # Have to preload a few things to get a nice clean compile
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 SHELL=/bin/sh
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 DEPS = -l ./docomp.el -l ./w3-vars.el
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 # compile with noninteractive and relatively clean environment
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 BATCHFLAGS = -batch -q -no-site-file
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 # files that contain variables and macros that everything else depends on
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 CORE = docomp.el
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 SOURCES = \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 w3.el w3-draw.el w3-e19.el w3-mule.el w3-parse.el w3-print.el \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 w3-vars.el w3-xemac.el w3-style.el w3-about.el w3-hot.el \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 w3-toolbar.el font.el \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 w3-annotat.el w3-auto.el w3-forms.el images.el w3-imap.el \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 w3-emulate.el w3-menu.el w3-keyword.el w3-mouse.el widget.el \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 widget-edit.el w3-widget.el w3-speak.el w3-prefs.el
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 OBJECTS = $(SOURCES:.el=.elc)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 DISTFILES = Makefile ChangeLog $(SOURCES) w3.txi docomp.el \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 clean-cache default.css w3-sysdp.el
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 .SUFFIXES: .elc .el .el,v
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57 .el.elc:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 @echo Compiling $<
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 @URLDIR=$(URLDIR) $(EMACS) $(BATCHFLAGS) $(DEPS) -f batch-byte-compile $<
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 w3: $(URLDIR) docomp.el $(OBJECTS)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 @echo Build of w3 complete...
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 $(URLDIR):
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 @echo "Please install the URL package in $(URLDIR) first."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 @/bin/false
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 all: w3.info w3 emacs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 install: all
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 @echo Installing in $(LISPDIR)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 @if [ ! -d $(LISPDIR) ] ; then $(MKDIR) $(LISPDIR) ; fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 @(cd $(LISPDIR) ; $(RM) $(SOURCES) $(OBJECTS) w3-sysdp.el*)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 @$(CP) $(SOURCES) $(OBJECTS) THIS* $(LISPDIR)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 @if [ ! -d $(INFODIR) ] ; then $(MKDIR) $(INFODIR) ; fi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 @$(CP) w3.info* $(INFODIR)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 @$(CP) default.css $(DOTDIR)/stylesheet
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 emacs:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 @echo Adding w3 setup to $(DOTEMACS)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 $(EMACS) -batch -q -l docomp.el -f hack-dot-emacs $(DOTEMACS) \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 $(LISPDIR) $(URLDIR)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 clean:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 $(RM) $(OBJECTS)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 w3.info: w3.txi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 @$(MAKEINFO) w3.txi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 w3.dvi: w3.txi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91 tex w3.txi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92 texindex w3.cp w3.fn w3.ky w3.pg w3.tp w3.vr
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93 tex w3.txi
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94 $(RM) w3.cp w3.fn w3.ky w3.pg w3.tp w3.vr \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95 w3.cps w3.fns w3.kys w3.pgs w3.tps w3.vrs \
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96 w3.log w3.toc w3.aux
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97