elib / Makefile.dist

# $Id$
# 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
# 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)/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.


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 \

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 \

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
#@echo Please merge elib-startup.el into $(locallisppath)/default.el


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

	$(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
	$(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


dist: disttree
	rm -f $(DISTDIR).tar.gz $(DISTDIR).tar.gz.uu
	tar cvf $(DISTDIR).tar $(DISTDIR)
	gzip $(DISTDIR).tar

	rm -rf $(DISTDIR) || exit 0
	mkdir $(DISTDIR)

# eof
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.