* Makefile.am: Export variables EMACS and XEMACS.
authorueno <ueno>
Tue, 12 Feb 2002 15:00:08 +0000 (15:00 +0000)
committerueno <ueno>
Tue, 12 Feb 2002 15:00:08 +0000 (15:00 +0000)
* Makefile.lisp: Don't set variables EMACS and XEMACS when they have
already been set.

lisp/Makefile.am
lisp/Makefile.lisp [new file with mode: 0644]

index b4e9471..dc8a1e2 100644 (file)
@@ -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 (file)
index 0000000..300a9ba
--- /dev/null
@@ -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)