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