Mercurial > hg > xemacs-beta
comparison lisp/w3/Makefile @ 2:ac2d302a0011 r19-15b2
Import from CVS: tag r19-15b2
author | cvs |
---|---|
date | Mon, 13 Aug 2007 08:46:35 +0200 |
parents | 376386a54a3c |
children | 9ee227acff29 |
comparison
equal
deleted
inserted
replaced
1:c0c6a60d29db | 2:ac2d302a0011 |
---|---|
1 # what emacs is called on your system | 1 # what emacs is called on your system |
2 EMACS = emacs | 2 EMACS = emacs |
3 | 3 |
4 # How to make a directory | 4 # How to install a file |
5 # need a -p if you want to make the parents! | 5 INSTALL = install |
6 MKDIR = mkdir | |
7 | 6 |
8 # Various other stuff used | 7 # Various other stuff used |
9 RM = rm -f | 8 RM = rm -f |
10 CP = cp | 9 CP = cp |
11 | 10 |
18 | 17 |
19 # Change this to be where your .emacs file is stored | 18 # Change this to be where your .emacs file is stored |
20 DOTEMACS = $$HOME/.emacs | 19 DOTEMACS = $$HOME/.emacs |
21 | 20 |
22 # Where the Emacs-W3 configuration files should be installed | 21 # Where the Emacs-W3 configuration files should be installed |
23 DOTDIR = $$HOME/.w3/ | 22 DOTDIR = $$HOME/.w3 |
24 | 23 |
25 # 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 |
26 # examples: | 25 # examples: |
27 # $(EMACS) -batch -q -f batch-texinfo-format | 26 # $(EMACS) -batch -q -f batch-texinfo-format |
28 # makeinfo | 27 # makeinfo |
29 MAKEINFO = makeinfo | 28 MAKEINFO = makeinfo |
30 | 29 |
31 ############## no user servicable parts beyond this point ################### | 30 ############## no user servicable parts beyond this point ################### |
32 # Have to preload a few things to get a nice clean compile | 31 # Have to preload a few things to get a nice clean compile |
33 SHELL=/bin/sh | 32 |
34 DEPS = -l ./docomp.el -l ./w3-vars.el | 33 DEPS = -l ./docomp.el -l ./w3-vars.el |
35 | 34 |
36 # compile with noninteractive and relatively clean environment | 35 # compile with noninteractive and relatively clean environment |
37 BATCHFLAGS = -batch -q -no-site-file | 36 BATCHFLAGS = -batch -q -no-site-file |
38 | 37 |
40 CORE = docomp.el | 39 CORE = docomp.el |
41 | 40 |
42 SOURCES = \ | 41 SOURCES = \ |
43 w3.el w3-draw.el w3-e19.el w3-mule.el w3-parse.el w3-print.el \ | 42 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 \ | 43 w3-vars.el w3-xemac.el w3-style.el w3-about.el w3-hot.el \ |
45 w3-toolbar.el font.el \ | 44 w3-toolbar.el font.el w3-sysdp.el \ |
46 w3-annotat.el w3-auto.el w3-forms.el images.el w3-imap.el \ | 45 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 \ | 46 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 | 47 widget-edit.el w3-widget.el w3-speak.el w3-prefs.el w3-latex.el |
49 | 48 |
50 OBJECTS = $(SOURCES:.el=.elc) | 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 | |
51 | 57 |
52 DISTFILES = Makefile ChangeLog $(SOURCES) w3.txi docomp.el \ | 58 DISTFILES = Makefile ChangeLog $(SOURCES) w3.txi docomp.el \ |
53 clean-cache default.css w3-sysdp.el | 59 clean-cache default.css |
54 | 60 |
55 .SUFFIXES: .elc .el .el,v | 61 .SUFFIXES: .elc .el .el,v |
56 | 62 |
57 .el.elc: | 63 .el.elc: |
58 @echo Compiling $< | 64 URLDIR=$(URLDIR) $(EMACS) $(BATCHFLAGS) $(DEPS) \ |
59 @URLDIR=$(URLDIR) $(EMACS) $(BATCHFLAGS) $(DEPS) -f batch-byte-compile $< | 65 -f batch-byte-compile $< |
60 | 66 |
61 w3: $(URLDIR) docomp.el $(OBJECTS) | 67 w3: $(URLDIR) docomp.el $(OBJECTS) |
62 @echo Build of w3 complete... | 68 @echo Build of w3 complete... |
63 | 69 |
64 $(URLDIR): | 70 $(URLDIR): |
67 | 73 |
68 all: w3.info w3 emacs | 74 all: w3.info w3 emacs |
69 | 75 |
70 install: all | 76 install: all |
71 @echo Installing in $(LISPDIR) | 77 @echo Installing in $(LISPDIR) |
72 @if [ ! -d $(LISPDIR) ] ; then $(MKDIR) $(LISPDIR) ; fi | 78 $(INSTALL) -d $(LISPDIR) |
73 @(cd $(LISPDIR) ; $(RM) $(SOURCES) $(OBJECTS) w3-sysdp.el*) | 79 $(INSTALL) -m 644 $(SOURCES) $(OBJECTS) $(LISPDIR) |
74 @$(CP) $(SOURCES) $(OBJECTS) THIS* $(LISPDIR) | 80 $(INSTALL) -d $(INFODIR) |
75 @if [ ! -d $(INFODIR) ] ; then $(MKDIR) $(INFODIR) ; fi | 81 $(INSTALL) -m 644 w3.info* $(INFODIR) |
76 @$(CP) w3.info* $(INFODIR) | 82 $(INSTALL) -d $(DOTDIR) |
77 @$(CP) default.css $(DOTDIR)/stylesheet | 83 $(INSTALL) -m 644 default.css $(DOTDIR)/stylesheet |
78 | 84 |
79 emacs: | 85 emacs: |
80 @echo Adding w3 setup to $(DOTEMACS) | 86 @echo Adding w3 setup to $(DOTEMACS) |
81 $(EMACS) -batch -q -l docomp.el -f hack-dot-emacs $(DOTEMACS) \ | 87 URLDIR=$(URLDIR) $(EMACS) -batch -q -l docomp.el -f hack-dot-emacs \ |
82 $(LISPDIR) $(URLDIR) | 88 $(DOTEMACS) $(LISPDIR) $(URLDIR) |
83 | 89 |
84 clean: | 90 clean: |
85 $(RM) $(OBJECTS) | 91 $(RM) $(OBJECTS) |
86 | 92 |
87 w3.info: w3.txi | 93 w3.info: w3.txi |