1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117
|
# where the w3 lisp files should go
prefix = /usr/local
infodir = $(prefix)/info
datadir = $(prefix)/share
lispdir = $(datadir)/emacs/site-lisp
confdir = $(datadir)/emacs/w3
# what emacs is called on your system
EMACS = emacs
# How to install a file
INSTALL = install
# Various other stuff used
RM = rm -f
CP = cp
# Change this to be how to convert texinfo files into info files
# examples:
# $(EMACS) -batch -q -l texinfmt -f batch-texinfo-format
# makeinfo
MAKEINFO = makeinfo
############## no user servicable parts beyond this point ###################
# Have to preload a few things to get a nice clean compile
DEPS = -l ./docomp.el -l ./w3-vars.el
# compile with noninteractive and relatively clean environment
BATCHFLAGS = -batch -q -no-site-file
# files that contain variables and macros that everything else depends on
CORE = docomp.el
URLSOURCES = \
url-nfs.el url-file.el url-cookie.el url-parse.el url-irc.el \
url-gopher.el url-http.el url-mail.el url-misc.el url-news.el \
url-vars.el url-auth.el mm.el md5.el url-gw.el ssl.el base64.el \
url.el socks.el url-cache.el url-ns.el
CUSTOMSOURCES = # widget.el widget-edit.el
CUSTOMOBJECTS = $(CUSTOMSOURCES:.el=.elc)
URLOBJECTS = $(URLSOURCES:.el=.elc)
SOURCES = \
$(CUSTOMSOURCES) $(URLSOURCES) mule-sysdp.el w3-widget.el \
devices.el w3-imap.el css.el dsssl.el dsssl-flow.el font.el \
images.el w3-vars.el w3-cus.el w3-style.el w3-keyword.el \
w3-forms.el w3-emulate.el w3-props.el w3-auto.el w3-menu.el \
w3-mouse.el w3-toolbar.el w3-prefs.el w3-speak.el w3-latex.el \
w3-parse.el w3-display.el w3-print.el w3-about.el w3-hot.el \
w3-e19.el w3-xemac.el w3.el w3-script.el w3-jscript.el \
w3-elisp.el
OBJECTS = $(SOURCES:.el=.elc)
# Warning! Currently, the following file can _NOT_ be bytecompiled.
EXTRAS = w3-sysdp.el
.SUFFIXES: .elc .el .el,v
.el.elc:
$(EMACS) $(BATCHFLAGS) $(DEPS) -f batch-byte-compile $<
w3: check-custom docomp.el $(OBJECTS)
@echo Build of w3 complete...
xemacs-w3: docomp.el $(OBJECTS)
@echo Build of w3 complete...
fast: check-custom docomp.el
$(EMACS) $(BATCHFLAGS) $(DEPS) -f batch-byte-compile $(SOURCES)
all: w3.info w3
install: all
@echo Installing in $(lispdir)
@( if [ ! -d $(lispdir) ]; then mkdir -p $(lispdir); fi )
@( if [ ! -d $(infodir) ]; then mkdir -p $(infodir); fi )
@( if [ ! -d $(confdir) ]; then mkdir -p $(confdir); fi )
$(INSTALL) -m 644 $(SOURCES) $(OBJECTS) $(lispdir)
$(INSTALL) -m 644 $(EXTRAS) $(lispdir)
$(INSTALL) -m 644 w3.info* $(infodir)
$(INSTALL) -m 644 default.css $(confdir)/stylesheet
$(INSTALL) -m 644 html32.dsl $(confdir)/
clean:
$(RM) $(OBJECTS)
check-custom:
@./custom-check $(EMACS)
w3.info: w3.txi
@$(MAKEINFO) w3.txi
w3.dvi: w3.txi
tex w3.txi
texindex w3.cp w3.fn w3.ky w3.pg w3.tp w3.vr
tex w3.txi
$(RM) w3.cp w3.fn w3.ky w3.pg w3.tp w3.vr \
w3.cps w3.fns w3.kys w3.pgs w3.tps w3.vrs \
w3.log w3.toc w3.aux
w3-vars.elc: w3-cus.elc w3-vars.el
w3-display.elc: w3-display.el css.elc font.elc w3-imap.elc
css.elc: css.el font.elc
w3.elc: css.elc w3-vars.elc w3.el
dsssl.elc: dsssl.el dsssl-flow.elc
autoloads: auto-autoloads.el
auto-autoloads.el: $(SOURCES)
$(EMACS) -batch -q -no-site-file \
-eval '(setq autoload-target-directory "'`pwd`'/")' \
-eval '(setq autoload-package-name "w3")' \
-l autoload \
-f batch-update-autoloads $?
|