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
|
# $Id: Makefile,v 0.21 1995/12/11 00:50:43 ceder Exp $
# Makefile for the GNU Emacs lisp library, Elib
# Copyright (C) 1991-1995 Free Software Foundation
#
# This file is part of the GNU Emacs lisp library, Elib.
#
# GNU Elib 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.
#
# GNU Elib 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.
#
# ================================================================
# Change the following to reflect the situation at your site:
prefix = /usr
datadir = $(prefix)/lib
#locallisppath = $(datadir)/emacs/site-lisp
locallisppath= $(prefix)/share/emacs/site-lisp
# This will fail if locallisppath is anything but a single directory.
# That is all right, since that is the default behaviour of Emacs; those
# that know how to change it, should know how to change this file. And
# if this is accepted into GNU Emacs, the files should end up inside
# the normal lisp directory.
ELIBDIR = $(locallisppath)/elib
infodir = $(prefix)/share/info
EMACS = emacs
MAKEINFO = makeinfo
TEXI2DVI = texi2dvi
SHELL = /bin/sh
INSTALL_DATA = /usr/bin/install -m 644
INSTALL_DIR = /usr/bin/install -d
# ================================================================
# You shouldn't change anything below this line.
#
VERSION = 1.0
ELFILES = stack-f.el stack-m.el queue-f.el queue-m.el \
elib-node.el bintree.el avltree.el string.el read.el cookie.el dll.el \
dll-debug.el
ELCFILES = stack-f.elc stack-m.elc queue-f.elc queue-m.elc\
elib-node.elc bintree.elc avltree.elc string.elc read.elc cookie.elc dll.elc \
dll-debug.elc
all: elcfiles elib-startup.el info
elib-startup.el: startup-template.el Makefile
sed s,ELIB_PATH,\"$(ELIBDIR)\", < startup-template.el > elib-startup.el
install: installdirs install-info
$(INSTALL_DATA) $(ELFILES) $(ELIBDIR)
#$(INSTALL_DATA) $(ELCFILES) $(ELIBDIR)
#@echo Please merge elib-startup.el into $(locallisppath)/default.el
installdirs:
-$(INSTALL_DIR) $(ELIBDIR)
install-info: elib.info
$(INSTALL_DIR) $(infodir)
$(INSTALL_DATA) elib.info* $(infodir)
#if $(SHELL) -c 'install-info --version' \
# >/dev/null 2>&1; then \
# install-info --infodir=$(infodir) elib.info; \
#else true; fi
clean:
$(RM) *~ elib-startup.el core $(ELCFILES)
$(RM) -r $(DISTDIR) $(DISTDIR).tar.gz $(DISTDIR).tar.gz.uu
$(RM) -f elib.info*
info: elib.info
elib.info: elib.texi
$(MAKEINFO) elib.texi
dvi: elib.dvi
elib.dvi: elib.texi
$(TEXI2DVI) $(srcdir)/elib.texi
.PHONY: elcfiles
elcfiles:
$(EMACS) -batch -l elib-compile-all.el -f compile-elib
TAGS tags:
etags $(ELFILES)
# Below this point is rules for release management.
OTHERS = README INSTALL COPYING ChangeLog elib.texi gpl.texi \
startup-template.el elib-compile-all.el Makefile \
.cvsignore RELEASING TODO NEWS elib-test.el
DISTDIR = elib-$(VERSION)
dist: disttree
rm -f $(DISTDIR).tar.gz $(DISTDIR).tar.gz.uu
tar cvf $(DISTDIR).tar $(DISTDIR)
gzip $(DISTDIR).tar
disttree:
rm -rf $(DISTDIR) || exit 0
mkdir $(DISTDIR)
cp $(ELFILES) $(DISTDIR)
cp $(OTHERS) $(DISTDIR)
# eof
|