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 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146
|
# Makefile for Eshell lisp code
# Copyright (C) 1998-1999 John Wiegley <johnw@gnu.org>
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2, or (at your option) any
# later version.
# This file is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
# You should have received a copy of the GNU General Public License
# along with GNU Emacs; see the file COPYING. If not, write to
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
prefix = /usr/local
datadir = $(prefix)/share
# the directory where you install third-party emacs packges
lispdir = $(datadir)/emacs/site-lisp
# the directory where you install the info doc
infodir = $(prefix)/info
docdir = $(prefix)/doc
EMACS = emacs
MAKEINFO = makeinfo
TEXI2DVI = texi2dvi
SHELL = /bin/sh
DVIPS = dvips
CP = cp
MKDIR = mkdir -p
ETAGS = etags
######################################################################
### No changes below this line should be necessary ###
######################################################################
PACKAGE = eshell
# the directory where the .elc files will be installed
elcdir = $(lispdir)/$(PACKAGE)
eldir = $(elcdir)
MARGS = --no-init-file --no-site-file -l ./esh-maint.el -batch
BEMACS = $(EMACS) $(MARGS)
ELC = $(BEMACS) -f batch-byte-compile
ELFILES = \
eshell.el \
esh-arg.el \
esh-cmd.el \
esh-ext.el \
esh-io.el \
esh-mode.el \
esh-module.el \
esh-opt.el \
esh-proc.el \
esh-test.el \
esh-toggle.el \
esh-util.el \
esh-var.el \
em-alias.el \
em-banner.el \
em-basic.el \
em-cmpl.el \
em-dirs.el \
em-glob.el \
em-hist.el \
em-ls.el \
em-pred.el \
em-prompt.el \
em-rebind.el \
em-script.el \
em-smart.el \
em-term.el \
em-unix.el \
em-xtra.el
ELCFILES = $(ELFILES:.el=.elc)
TEXEXTS = *.cps *.fns *.kys *.vr *.tp *.pg *.log *.aux *.toc *.cp *.ky *.fn *.vrs
.SUFFIXES: .elc .el .info .ps .dvi .texi
.PHONY: elcfiles info clean distclean default
.PHONY: install_elc install install_el install_info
.el.elc:
$(ELC) $<
.texi.info:
$(MAKEINFO) $<
.texi.dvi:
$(TEXI2DVI) $<
.dvi.ps:
$(DVIPS) -f $< >$@
######################################################################
default: eshell-auto.el elcfiles
dist: eshell-auto.el
eshell-auto.el: $(ELFILES)
echo ";;; DO NOT MODIFY THIS FILE" > eshell-auto.el
echo "(if (featurep 'eshell-auto) (error \"Already loaded\"))" \
>> eshell-auto.el
$(BEMACS) -f eshell-generate-autoloads ./eshell-auto.el .
echo "(provide 'eshell-auto)" >> eshell-auto.el
ln -f eshell-auto.el auto-autoloads.el
elcfiles: Makefile $(ELFILES)
$(ELC) $(ELFILES)
info: $(PACKAGE).info
install_elc: $(ELCFILES) eshell-auto.el _pkg.el
$(MKDIR) $(elcdir)
$(CP) $(ELCFILES) auto-autoloads.el \
eshell-auto.el _pkg.el $(elcdir)/
install_el: $(ELFILES)
$(MKDIR) $(eldir)
$(CP) $(ELFILES) $(eldir)/
install_info: $(PACKAGE).info
$(MKDIR) $(infodir)
$(CP) *.info* $(infodir)/
-[ ! -w $(infodir)/dir ] || install-info $(PACKAGE).info $(infodir)/dir
install: install_elc install_info install_el
TAGS tags:
$(ETAGS) $(ELFILES)
clean:
$(RM) *~ core .\#* $(TEXEXTS)
distclean: clean
$(RM) *.elc *.dvi *.info* *.texi *.ps README TAGS
$(RM) eshell-auto.el* esh-groups.el* auto-autoloads.el*
|