comparison lisp/w3/Makefile @ 70:131b0175ea99 r20-0b30

Import from CVS: tag r20-0b30
author cvs
date Mon, 13 Aug 2007 09:02:59 +0200
parents 28a7c63c7e1e
children 1ce6082ce73f
comparison
equal deleted inserted replaced
69:804d1389bcd6 70:131b0175ea99
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
8 # what emacs is called on your system 1 # what emacs is called on your system
9 EMACS = emacs 2 EMACS = emacs
10 3
11 # How to install a file 4 # How to install a file
12 INSTALL = install 5 INSTALL = install
13 6
14 # Various other stuff used 7 # Various other stuff used
15 RM = rm -f 8 RM = rm -f
16 CP = cp 9 CP = cp
10
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
17 23
18 # Change this to be how to convert texinfo files into info files 24 # Change this to be how to convert texinfo files into info files
19 # examples: 25 # examples:
20 # $(EMACS) -batch -q -f batch-texinfo-format 26 # $(EMACS) -batch -q -f batch-texinfo-format
21 # makeinfo 27 # makeinfo
30 BATCHFLAGS = -batch -q -no-site-file 36 BATCHFLAGS = -batch -q -no-site-file
31 37
32 # files that contain variables and macros that everything else depends on 38 # files that contain variables and macros that everything else depends on
33 CORE = docomp.el 39 CORE = docomp.el
34 40
35 URLSOURCES = \ 41 SOURCES = \
36 url-nfs.el url-file.el url-cookie.el url-parse.el url-irc.el \ 42 w3.el w3-draw.el w3-e19.el w3-mule.el w3-parse.el w3-print.el \
37 url-gopher.el url-http.el url-mail.el url-misc.el url-news.el \ 43 w3-vars.el w3-xemac.el w3-style.el w3-about.el w3-hot.el \
38 url-vars.el url-auth.el mm.el url-gw.el ssl.el base64.el \ 44 w3-toolbar.el font.el w3-sysdp.el \
39 url.el socks.el url-cache.el url-ns.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
40 48
41 CUSTOMSOURCES = # widget.el widget-edit.el 49 OBJECTS = \
42 CUSTOMOBJECTS = $(CUSTOMSOURCES:.el=.elc) 50 w3.elc w3-draw.elc w3-e19.elc w3-mule.elc w3-parse.elc \
43 URLOBJECTS = $(URLSOURCES:.el=.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
44 57
45 SOURCES = \ 58 DISTFILES = Makefile ChangeLog $(SOURCES) w3.txi docomp.el \
46 $(CUSTOMSOURCES) $(URLSOURCES) mule-sysdp.el w3-widget.el \ 59 clean-cache default.css
47 w3-imap.el css.el dsssl.el font.el images.el w3-vars.el \
48 w3-cus.el w3-style.el w3-keyword.el w3-forms.el w3-emulate.el \
49 w3-auto.el w3-menu.el w3-mouse.el w3-toolbar.el w3-prefs.el \
50 w3-speak.el w3-latex.el w3-parse.el w3-display.el w3-print.el \
51 w3-about.el w3-hot.el w3-e19.el w3-xemac.el w3.el w3-script.el \
52 w3-jscript.el w3-elisp.el
53
54 OBJECTS = $(SOURCES:.el=.elc)
55
56 # Warning! Currently, the following file can _NOT_ be bytecompiled.
57 EXTRAS = w3-sysdp.el
58 60
59 .SUFFIXES: .elc .el .el,v 61 .SUFFIXES: .elc .el .el,v
60 62
61 .el.elc: 63 .el.elc:
62 $(EMACS) $(BATCHFLAGS) $(DEPS) -f batch-byte-compile $< 64 URLDIR=$(URLDIR) $(EMACS) $(BATCHFLAGS) $(DEPS) \
65 -f batch-byte-compile $<
63 66
64 w3: check-custom docomp.el $(OBJECTS) 67 w3: $(URLDIR) docomp.el $(OBJECTS)
65 @echo Build of w3 complete... 68 @echo Build of w3 complete...
66 69
67 xemacs-w3: docomp.el $(OBJECTS) 70 $(URLDIR):
68 @echo Build of w3 complete... 71 @echo "Please install the URL package in $(URLDIR) first."
72 @/bin/false
69 73
70 all: w3.info w3 74 all: w3.info w3 emacs
71 75
72 install: all 76 install: all
73 @echo Installing in $(lispdir) 77 @echo Installing in $(LISPDIR)
74 @( if [ ! -d $(lispdir) ]; then mkdir -p $(lispdir); fi ) 78 $(INSTALL) -d $(LISPDIR)
75 @( if [ ! -d $(infodir) ]; then mkdir -p $(infodir); fi ) 79 $(INSTALL) -m 644 $(SOURCES) $(OBJECTS) $(LISPDIR)
76 @( if [ ! -d $(confdir) ]; then mkdir -p $(confdir); fi ) 80 $(INSTALL) -d $(INFODIR)
77 $(INSTALL) -m 644 $(SOURCES) $(OBJECTS) $(lispdir) 81 $(INSTALL) -m 644 w3.info* $(INFODIR)
78 $(INSTALL) -m 644 $(EXTRAS) $(lispdir) 82 $(INSTALL) -d $(DOTDIR)
79 $(INSTALL) -m 644 w3.info* $(infodir) 83 $(INSTALL) -m 644 default.css $(DOTDIR)/stylesheet
80 $(INSTALL) -m 644 default.css $(confdir)/stylesheet 84
81 $(INSTALL) -m 644 html32.dsl $(confdir)/ 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)
82 89
83 clean: 90 clean:
84 $(RM) $(OBJECTS) 91 $(RM) $(OBJECTS)
85
86 check-custom:
87 @./custom-check $(EMACS)
88 92
89 w3.info: w3.txi 93 w3.info: w3.txi
90 @$(MAKEINFO) w3.txi 94 @$(MAKEINFO) w3.txi
91 95
92 w3.dvi: w3.txi 96 w3.dvi: w3.txi
95 tex w3.txi 99 tex w3.txi
96 $(RM) w3.cp w3.fn w3.ky w3.pg w3.tp w3.vr \ 100 $(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 \ 101 w3.cps w3.fns w3.kys w3.pgs w3.tps w3.vrs \
98 w3.log w3.toc w3.aux 102 w3.log w3.toc w3.aux
99 103
100 w3-vars.elc: w3-cus.el w3-vars.el
101 w3-display.elc: w3-display.el css.el font.el w3-imap.el
102 css.elc: css.el font.el
103 w3.elc: css.el w3-vars.el w3.el