From e67f79b080624da6bcb6791d92d093f334821cd1 Mon Sep 17 00:00:00 2001 From: ueno Date: Tue, 12 Feb 2002 15:00:08 +0000 Subject: [PATCH] * Makefile.am: Export variables EMACS and XEMACS. * Makefile.lisp: Don't set variables EMACS and XEMACS when they have already been set. --- lisp/Makefile.am | 4 ++++ lisp/Makefile.lisp | 43 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 lisp/Makefile.lisp diff --git a/lisp/Makefile.am b/lisp/Makefile.am index b4e9471..dc8a1e2 100644 --- a/lisp/Makefile.am +++ b/lisp/Makefile.am @@ -1,6 +1,10 @@ EXTRA_DIST = $(wildcard *.el) Makefile.lisp liece.xpm liece.xbm DISTCLEANFILES = liece-setup.el +EMACS = @EMACS@ +XEMACS = @XEMACS@ +export EMACS XEMACS + all: elc elc package install install-package clean: diff --git a/lisp/Makefile.lisp b/lisp/Makefile.lisp new file mode 100644 index 0000000..300a9ba --- /dev/null +++ b/lisp/Makefile.lisp @@ -0,0 +1,43 @@ +PACKAGE = liece +VERSION = 2.0 + +ifndef EMACS + EMACS = emacs +endif +ifndef XEMACS + XEMACS = xemacs +endif +FLAGS = -batch -q -no-site-file +TAR = tar + +PREFIX = NONE +LISPDIR = NONE +PACKAGEDIR = NONE +VERSION_SPECIFIC_LISPDIR = NONE + +GOMI = liece-setup.el *.elc + +all: elc + +elc: + $(EMACS) $(FLAGS) -l ./liece-make.el -f autoload-liece \ + $(PREFIX) $(LISPDIR) + $(EMACS) $(FLAGS) -l ./liece-make.el -f compile-liece \ + $(PREFIX) $(LISPDIR) + +install: elc + $(EMACS) $(FLAGS) -l ./liece-make.el -f install-liece \ + $(PREFIX) $(LISPDIR) + +package: + $(XEMACS) $(FLAGS) -l ./liece-make.el -f autoload-liece \ + $(PREFIX) $(LISPDIR) + $(XEMACS) $(FLAGS) -l ./liece-make.el -f compile-liece-package \ + $(PACKAGEDIR) + +install-package: package + $(XEMACS) $(FLAGS) -l ./liece-make.el -f install-liece-package \ + $(PACKAGEDIR) + +clean: + -rm -f $(GOMI) -- 1.7.10.4