1 # $Id: Makefile.dist,v 1.1.1.1 1998-10-07 11:10:57 jareth Exp $
2 # Makefile for the GNU Emacs lisp library, Elib
3 # Copyright (C) 1991-1995 Free Software Foundation
5 # This file is part of the GNU Emacs lisp library, Elib.
7 # GNU Elib is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2, or (at your option)
12 # GNU Elib is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with GNU Emacs; see the file COPYING. If not, write to
19 # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
22 # ================================================================
23 # Change the following to reflect the situation at your site:
26 datadir = $(prefix)/lib
27 #locallisppath = $(datadir)/emacs/site-lisp
28 locallisppath= $(prefix)/share/emacs/site-lisp
29 # This will fail if locallisppath is anything but a single directory.
30 # That is all right, since that is the default behaviour of Emacs; those
31 # that know how to change it, should know how to change this file. And
32 # if this is accepted into GNU Emacs, the files should end up inside
33 # the normal lisp directory.
34 ELIBDIR = $(locallisppath)/elib
35 infodir = $(prefix)/info
41 INSTALL_DATA = /usr/bin/install -m 644
42 INSTALL_DIR = /usr/bin/install -d
44 # ================================================================
45 # You shouldn't change anything below this line.
50 ELFILES = stack-f.el stack-m.el queue-f.el queue-m.el \
51 elib-node.el bintree.el avltree.el string.el read.el cookie.el dll.el \
54 ELCFILES = stack-f.elc stack-m.elc queue-f.elc queue-m.elc\
55 elib-node.elc bintree.elc avltree.elc string.elc read.elc cookie.elc dll.elc \
58 all: elcfiles elib-startup.el info
60 elib-startup.el: startup-template.el Makefile
61 sed s,ELIB_PATH,\"$(ELIBDIR)\", < startup-template.el > elib-startup.el
63 install: installdirs install-info
64 $(INSTALL_DATA) $(ELFILES) $(ELIBDIR)
65 #$(INSTALL_DATA) $(ELCFILES) $(ELIBDIR)
66 #@echo Please merge elib-startup.el into $(locallisppath)/default.el
69 -$(INSTALL_DIR) $(ELIBDIR)
71 install-info: elib.info
72 $(INSTALL_DIR) $(infodir)
73 $(INSTALL_DATA) elib.info* $(infodir)
74 #if $(SHELL) -c 'install-info --version' \
75 # >/dev/null 2>&1; then \
76 # install-info --infodir=$(infodir) elib.info; \
80 $(RM) *~ elib-startup.el core $(ELCFILES)
81 $(RM) -r $(DISTDIR) $(DISTDIR).tar.gz $(DISTDIR).tar.gz.uu
93 $(TEXI2DVI) $(srcdir)/elib.texi
97 $(EMACS) -batch -l elib-compile-all.el -f compile-elib
102 # Below this point is rules for release management.
104 OTHERS = README INSTALL COPYING ChangeLog elib.texi gpl.texi \
105 startup-template.el elib-compile-all.el Makefile \
106 .cvsignore RELEASING TODO NEWS elib-test.el
109 DISTDIR = elib-$(VERSION)
112 rm -f $(DISTDIR).tar.gz $(DISTDIR).tar.gz.uu
113 tar cvf $(DISTDIR).tar $(DISTDIR)
117 rm -rf $(DISTDIR) || exit 0
119 cp $(ELFILES) $(DISTDIR)
120 cp $(OTHERS) $(DISTDIR)