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