Initial Commit
[packages] / xemacs-packages / elib / Makefile.dist
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
4 #
5 # This file is part of the GNU Emacs lisp library, Elib.
6 #
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)
10 # any later version.
11 #
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.
16 #
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.
20 #
21
22 # ================================================================
23 # Change the following to reflect the situation at your site:
24
25 prefix = /usr
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
36
37 EMACS = emacs
38 MAKEINFO = makeinfo
39 TEXI2DVI = texi2dvi
40 SHELL = /bin/sh
41 INSTALL_DATA = /usr/bin/install -m 644
42 INSTALL_DIR = /usr/bin/install -d
43
44 # ================================================================
45 # You shouldn't change anything below this line.
46 #
47
48 VERSION = 1.0
49
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 \
52 dll-debug.el
53
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 \
56 dll-debug.elc
57
58 all: elcfiles elib-startup.el info
59
60 elib-startup.el: startup-template.el Makefile
61         sed s,ELIB_PATH,\"$(ELIBDIR)\", < startup-template.el > elib-startup.el
62
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
67
68 installdirs:
69         -$(INSTALL_DIR) $(ELIBDIR)
70
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; \
77 #else true; fi
78
79 clean:
80         $(RM) *~ elib-startup.el core $(ELCFILES)
81         $(RM) -r $(DISTDIR) $(DISTDIR).tar.gz $(DISTDIR).tar.gz.uu
82         $(RM) -f elib.info*
83
84
85 info: elib.info
86
87 elib.info: elib.texi
88         $(MAKEINFO) elib.texi
89
90 dvi: elib.dvi
91
92 elib.dvi: elib.texi
93         $(TEXI2DVI) $(srcdir)/elib.texi
94
95 .PHONY: elcfiles
96 elcfiles:
97         $(EMACS) -batch -l elib-compile-all.el -f compile-elib
98
99 TAGS tags:
100         etags $(ELFILES)
101
102 # Below this point is rules for release management.
103
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
107
108
109 DISTDIR = elib-$(VERSION)
110
111 dist: disttree
112         rm -f $(DISTDIR).tar.gz $(DISTDIR).tar.gz.uu
113         tar cvf $(DISTDIR).tar $(DISTDIR)
114         gzip $(DISTDIR).tar
115
116 disttree:
117         rm -rf $(DISTDIR) || exit 0
118         mkdir $(DISTDIR)
119         cp $(ELFILES) $(DISTDIR)
120         cp $(OTHERS) $(DISTDIR)
121
122 # eof